Prechádzať zdrojové kódy

友盟分享、和一些bug修改

liujiangyao 8 rokov pred
rodič
commit
cda58c859f
38 zmenil súbory, kde vykonal 489 pridanie a 27 odobranie
  1. 9 21
      app/build.gradle
  2. BIN
      app/libs/SecurityEnvSDK-release-1.1.0.jar
  3. BIN
      app/libs/umeng-share-QQ-simplify-6.9.2.jar
  4. BIN
      app/libs/umeng-share-core-6.9.2.jar
  5. BIN
      app/libs/umeng-share-wechat-simplify-6.9.2.jar
  6. BIN
      app/libs/umeng-shareboard-widget-6.9.2.jar
  7. BIN
      app/libs/umeng-sharetool-6.9.2.jar
  8. BIN
      app/libs/utdid4all-1.1.5.3_proguard.jar
  9. 47 1
      app/proguard-rules.pro
  10. 6 1
      app/src/main/java/com/kfzs/duanduan/ActMain.java
  11. 2 1
      app/src/main/java/com/kfzs/duanduan/fragment/FgtSmallSheep.java
  12. 4 3
      app/src/main/java/com/sheep/gamegroup/util/Jump2View.java
  13. 46 0
      app/src/main/java/com/sheep/gamegroup/util/TestUtil.java
  14. BIN
      app/src/main/jniLibs/arm64-v8a/libsecurityenv.so
  15. BIN
      app/src/main/jniLibs/armeabi-v7a/libsecurityenv.so
  16. BIN
      app/src/main/jniLibs/armeabi/libsecurityenv.so
  17. BIN
      app/src/main/jniLibs/x86/libsecurityenv.so
  18. 0 0
      app/src/main/res/drawable/umeng_socialize_back_icon.png
  19. 0 0
      app/src/main/res/drawable/umeng_socialize_btn_bg.xml
  20. 0 0
      app/src/main/res/drawable/umeng_socialize_copy.png
  21. 0 0
      app/src/main/res/drawable/umeng_socialize_copyurl.png
  22. 0 0
      app/src/main/res/drawable/umeng_socialize_delete.png
  23. 0 0
      app/src/main/res/drawable/umeng_socialize_edit_bg.xml
  24. BIN
      app/src/main/res/drawable/umeng_socialize_fav.png
  25. 0 0
      app/src/main/res/drawable/umeng_socialize_menu_default.png
  26. 0 0
      app/src/main/res/drawable/umeng_socialize_more.png
  27. BIN
      app/src/main/res/drawable/umeng_socialize_qq.png
  28. BIN
      app/src/main/res/drawable/umeng_socialize_qzone.png
  29. 0 0
      app/src/main/res/drawable/umeng_socialize_share_music.png
  30. 0 0
      app/src/main/res/drawable/umeng_socialize_share_video.png
  31. 0 0
      app/src/main/res/drawable/umeng_socialize_share_web.png
  32. BIN
      app/src/main/res/drawable/umeng_socialize_wechat.png
  33. BIN
      app/src/main/res/drawable/umeng_socialize_wxcircle.png
  34. 25 0
      app/src/main/res/layout-um/socialize_share_menu_item.xml
  35. 121 0
      app/src/main/res/layout-um/umeng_socialize_oauth_dialog.xml
  36. 137 0
      app/src/main/res/layout-um/umeng_socialize_share.xml
  37. 10 0
      app/src/main/res/values-um/umeng_socialize_shareview_strings.xml
  38. 82 0
      app/src/main/res/values-um/umeng_socialize_style.xml

+ 9 - 21
app/build.gradle

@@ -196,7 +196,7 @@ dependencies {
     compile 'com.orhanobut:logger:1.15'
 
     //友盟
-    compile 'com.umeng.sdk:common:1.4.4'
+    compile 'com.umeng.sdk:common:1.5.3'
 
     //compile 'com.umeng.sdk:analytics:latest.integration'
 
@@ -211,27 +211,7 @@ dependencies {
     compile 'com.flipboard:bottomsheet-core:1.5.3'
     compile 'com.flipboard:bottomsheet-commons:1.5.3'
     compile 'com.google.protobuf:protobuf-java:3.2.0'
-//    compile 'com.umeng.analytics:analytics:6.0.9'
 
-    //    compile(name: 'FileDownloader-1.0.0', ext: 'aar')
-
-    //    compile files('libs/SocialSDK_QQ_Simplify.jar')
-
-    //    compile files('libs/SocialSDK_Sina_Simplify.jar')
-
-    //    compile files('libs/SocialSDK_WeChat_Simplify.jar')
-
-    //    compile files('libs/umeng_shareboard_widget.jar')
-
-    //    compile files('libs/umeng_social_api.jar')
-
-    //    compile files('libs/umeng_social_net.jar')
-
-    //    compile files('libs/umeng_social_shareboard.jar')
-
-    //    compile files('libs/umeng_social_shareview.jar')
-
-    //    compile files('libs/umeng_social_tool.jar')
     compile files('libs/open_sdk_r5923_lite.jar')
     compile files('libs/wechat-sdk-android-with-mta-1.1.6.jar')
     compile files('libs/umeng_social_tool.jar')
@@ -242,6 +222,14 @@ dependencies {
     compile files('libs/SocialSDK_WeiXin_Full.jar')
     compile files('libs/SocialSDK_QQ_Full.jar')
     compile 'com.zhy:okhttputils:2.6.2'
+    //umeng share
+    compile files('libs/umeng-share-core-6.9.2.jar')
+    compile files('libs/umeng-share-QQ-simplify-6.9.2.jar')
+    compile files('libs/umeng-share-wechat-simplify-6.9.2.jar')
+    compile files('libs/umeng-shareboard-widget-6.9.2.jar')
+    compile files('libs/umeng-sharetool-6.9.2.jar')
+    compile files('libs/SecurityEnvSDK-release-1.1.0.jar')
+    compile files('libs/utdid4all-1.1.5.3_proguard.jar')
 
     //    compile 'com.kf.framework:kf-utils:latest.integration@aar'
     compile 'com.kf.framework:kf-utils:1.4.5@aar'

BIN
app/libs/SecurityEnvSDK-release-1.1.0.jar


BIN
app/libs/umeng-share-QQ-simplify-6.9.2.jar


BIN
app/libs/umeng-share-core-6.9.2.jar


BIN
app/libs/umeng-share-wechat-simplify-6.9.2.jar


BIN
app/libs/umeng-shareboard-widget-6.9.2.jar


BIN
app/libs/umeng-sharetool-6.9.2.jar


BIN
app/libs/utdid4all-1.1.5.3_proguard.jar


+ 47 - 1
app/proguard-rules.pro

@@ -24,6 +24,9 @@
 # hide the original source file name.
 #-renamesourcefileattribute SourceFile
 
+-dontshrink
+-dontwarn com.google.android.maps.**
+-dontwarn android.webkit.WebView
 -dontwarn okhttp3.**
 -dontwarn okio.**
 -dontwarn javax.annotation.**
@@ -35,10 +38,53 @@
 -keep class com.tencent.mm.sdk.** {   *;}
 
 -dontwarn com.tencent.bugly.**
--keep public class com.tencent.bugly.**{*;}
+-keep public class com.tencent.**{*;}
 -keep class android.support.**{*;}
 #友盟
 -keep class com.umeng.** {*;}
+-keep public interface com.umeng.**
+-keep public interface com.tencent.**
+-keep public class com.umeng.* {*;}
+-keep class UMMoreHandler{*;}
+-keep class com.tencent.mm.sdk.modelmsg.WXMediaMessage {*;}
+-keep class com.tencent.mm.sdk.modelmsg.** implements com.tencent.mm.sdk.modelmsg.WXMediaMessage$IMediaObject {*;}
+-keep class com.tencent.mm.** {
+   *;
+}
+
+-dontwarn twitter4j.**
+-keep class twitter4j.** { *; }
+-keep class com.tencent.** {*;}
+-dontwarn com.tencent.**
+-keep class com.kakao.** {*;}
+-dontwarn com.kakao.**
+-keep public class com.umeng.com.umeng.soexample.R$*{
+    public static final int *;
+}
+-keep public class com.linkedin.android.mobilesdk.R$*{
+    public static final int *;
+}
+-keepclassmembers enum * {
+    public static **[] values();
+    public static ** valueOf(java.lang.String);
+}
+-keep class com.tencent.open.TDialog$*
+-keep class com.tencent.open.TDialog$* {*;}
+-keep class com.tencent.open.PKDialog
+-keep class com.tencent.open.PKDialog {*;}
+-keep class com.tencent.open.PKDialog$*
+-keep class com.tencent.open.PKDialog$* {*;}
+-keep class com.umeng.socialize.impl.ImageImpl {*;}
+-keep class com.sina.** {*;}
+-dontwarn com.sina.**
+-keep class  com.alipay.share.sdk.** {
+   *;
+}
+-keepnames class * implements android.os.Parcelable {
+    public static final ** CREATOR;
+}
+-keep class com.linkedin.** { *; }
+-keep class com.android.dingtalk.share.ddsharemodule.** { *; }
 
 #指定代码的压缩级别
 -optimizationpasses 5

+ 6 - 1
app/src/main/java/com/kfzs/duanduan/ActMain.java

@@ -37,6 +37,7 @@ import com.kfzs.duanduan.view.DialogStorageLow;
 import com.sheep.gamegroup.absBase.BaseActivity;
 import com.sheep.gamegroup.util.UMConfigUtils;
 import com.sheep.jiuyan.samllsheep.R;
+import com.umeng.socialize.UMShareAPI;
 import com.zhy.http.okhttp.OkHttpUtils;
 import com.zhy.http.okhttp.callback.StringCallback;
 
@@ -210,5 +211,9 @@ public class ActMain extends BaseActivity {
         tabsHelper.onBackPressed();
     }
 
-
+    @Override
+    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+        super.onActivityResult(requestCode, resultCode, data);
+        UMShareAPI.get(this).onActivityResult(requestCode, resultCode, data);
+    }
 }

+ 2 - 1
app/src/main/java/com/kfzs/duanduan/fragment/FgtSmallSheep.java

@@ -443,7 +443,8 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
                 break;
             case R.id.icon_layout://
                 if(BuildConfig.DEBUG) {
-                    TestUtil.test(activity);
+                    TestUtil.getInstance()
+                            .testUmen(getActivity());
                 }else
                     Jump2View.getInstance().goPersonnalCenterView(activity, null);
                 break;

+ 4 - 3
app/src/main/java/com/sheep/gamegroup/util/Jump2View.java

@@ -162,7 +162,7 @@ public class Jump2View {
      */
     public synchronized void goLoginView(Context context, Object o){
         Intent intent = new Intent(context, LoginAct.class);
-        if(o != null)
+        if(!(o instanceof Activity))
             intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         context.startActivity(intent);
     }
@@ -550,6 +550,8 @@ public class Jump2View {
         Intent i = new Intent(context, ChangeTelAct.class);
         if(o != null && o instanceof Integer)
             i.putExtra("where_from", (Integer) o);
+        if(!(context instanceof Activity))
+            i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         context.startActivity(i);
     }
     /**
@@ -1040,8 +1042,7 @@ public class Jump2View {
             activity.startActivity(intent);
             activity.finish();
         } else {
-            Intent intent = new Intent(activity, LoginAct.class);
-            activity.startActivity(intent);
+            goLoginView(activity, null);
             activity.finish();
         }
     }

+ 46 - 0
app/src/main/java/com/sheep/gamegroup/util/TestUtil.java

@@ -10,6 +10,7 @@ import android.content.Intent;
 import android.net.Uri;
 import android.support.v7.app.AlertDialog;
 import android.text.TextUtils;
+import android.util.Log;
 import android.view.View;
 import android.widget.ArrayAdapter;
 import android.widget.TextView;
@@ -21,6 +22,9 @@ import com.sheep.jiuyan.samllsheep.BuildConfig;
 import com.sheep.jiuyan.samllsheep.SheepApp;
 import com.sheep.jiuyan.samllsheep.utils.ClassFileHelper;
 import com.sheep.jiuyan.samllsheep.utils.G;
+import com.umeng.socialize.ShareAction;
+import com.umeng.socialize.UMShareListener;
+import com.umeng.socialize.bean.SHARE_MEDIA;
 
 import java.io.File;
 import java.util.Locale;
@@ -33,6 +37,14 @@ import static com.sheep.jiuyan.samllsheep.utils.ClassFileHelper.DIR;
  */
 public class TestUtil {
 
+    private static TestUtil textUtils;
+
+    public static TestUtil getInstance(){
+        if(textUtils == null)
+            textUtils = new TestUtil();
+        return textUtils;
+    }
+
     public static void setDebugDownLoad(final Context context, View view, final TaskEty taskEty) {
         view.setOnLongClickListener(new View.OnLongClickListener() {
             @Override
@@ -223,4 +235,38 @@ public class TestUtil {
                 }).create();
         dialog.show();
     }
+
+    /**
+     * umen 分享
+     */
+    public void testUmen(Activity context){
+        new ShareAction(context)
+                .withText("hehe")
+                .setDisplayList(
+                        SHARE_MEDIA.QQ,
+                        SHARE_MEDIA.WEIXIN)
+                .setCallback(new UMShareListener() {
+                    @Override
+                    public void onStart(SHARE_MEDIA share_media) {
+                        Log.e("start---"+share_media.getName(), share_media.getName());
+                    }
+
+                    @Override
+                    public void onResult(SHARE_MEDIA share_media) {
+                        Log.e("result---"+share_media.getName(), share_media.getName());
+                    }
+
+                    @Override
+                    public void onError(SHARE_MEDIA share_media, Throwable throwable) {
+                        Log.e("error---"+share_media.getName(), share_media.getName()+
+                                ",msg:"+ throwable.getMessage());
+                    }
+
+                    @Override
+                    public void onCancel(SHARE_MEDIA share_media) {
+                        Log.e("cancel---"+share_media.getName(), share_media.getName());
+                    }
+                })
+                .open();
+    }
 }

BIN
app/src/main/jniLibs/arm64-v8a/libsecurityenv.so


BIN
app/src/main/jniLibs/armeabi-v7a/libsecurityenv.so


BIN
app/src/main/jniLibs/armeabi/libsecurityenv.so


BIN
app/src/main/jniLibs/x86/libsecurityenv.so


app/src/main/res/drawable-um/umeng_socialize_back_icon.png → app/src/main/res/drawable/umeng_socialize_back_icon.png


app/src/main/res/drawable-um/umeng_socialize_btn_bg.xml → app/src/main/res/drawable/umeng_socialize_btn_bg.xml


app/src/main/res/drawable-um/umeng_socialize_copy.png → app/src/main/res/drawable/umeng_socialize_copy.png


app/src/main/res/drawable-um/umeng_socialize_copyurl.png → app/src/main/res/drawable/umeng_socialize_copyurl.png


app/src/main/res/drawable-um/umeng_socialize_delete.png → app/src/main/res/drawable/umeng_socialize_delete.png


app/src/main/res/drawable-um/umeng_socialize_edit_bg.xml → app/src/main/res/drawable/umeng_socialize_edit_bg.xml


BIN
app/src/main/res/drawable/umeng_socialize_fav.png


app/src/main/res/drawable-um/umeng_socialize_menu_default.png → app/src/main/res/drawable/umeng_socialize_menu_default.png


app/src/main/res/drawable-um/umeng_socialize_more.png → app/src/main/res/drawable/umeng_socialize_more.png


BIN
app/src/main/res/drawable/umeng_socialize_qq.png


BIN
app/src/main/res/drawable/umeng_socialize_qzone.png


app/src/main/res/drawable-um/umeng_socialize_share_music.png → app/src/main/res/drawable/umeng_socialize_share_music.png


app/src/main/res/drawable-um/umeng_socialize_share_video.png → app/src/main/res/drawable/umeng_socialize_share_video.png


app/src/main/res/drawable-um/umeng_socialize_share_web.png → app/src/main/res/drawable/umeng_socialize_share_web.png


BIN
app/src/main/res/drawable/umeng_socialize_wechat.png


BIN
app/src/main/res/drawable/umeng_socialize_wxcircle.png


+ 25 - 0
app/src/main/res/layout-um/socialize_share_menu_item.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:gravity="center"
+    android:orientation="vertical">
+
+    <com.umeng.socialize.shareboard.SocializeImageView
+        android:id="@+id/socialize_image_view"
+        android:layout_width="50dp"
+        android:layout_height="50dp"
+        android:padding="5dp"
+        android:src="@drawable/umeng_socialize_menu_default" />
+
+    <TextView
+        android:id="@+id/socialize_text_view"
+        android:layout_width="63dp"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="6dp"
+        android:ellipsize="end"
+        android:singleLine="true"
+        android:text="未知"
+        android:textSize="12sp" />
+
+</LinearLayout>

+ 121 - 0
app/src/main/res/layout-um/umeng_socialize_oauth_dialog.xml

@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:background="#D4E0E5">
+
+
+    <RelativeLayout
+        android:id="@+id/umeng_socialize_titlebar"
+        android:layout_width="match_parent"
+        android:layout_height="54dp"
+        android:background="#0086DC">
+
+        <TextView
+            android:id="@+id/umeng_title"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerInParent="true"
+            android:text=""
+            android:textColor="#ffffff"
+            android:textSize="18sp" />
+
+        <RelativeLayout
+            android:id="@+id/umeng_back"
+            android:layout_width="60dp"
+            android:layout_height="match_parent"
+
+            android:onClick="onCancel"
+            android:visibility="visible">
+
+            <ImageButton
+
+                android:layout_width="12dp"
+                android:layout_height="20dp"
+                android:layout_centerVertical="true"
+                android:background="@drawable/umeng_socialize_back_icon"
+                android:layout_marginLeft="15dp"
+                android:scaleType="center" />
+        </RelativeLayout>
+
+        <TextView
+            android:id="@+id/umeng_share_btn"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_alignParentRight="true"
+            android:layout_centerInParent="true"
+            android:layout_marginRight="10dp"
+            android:background="@drawable/umeng_socialize_btn_bg"
+            android:padding="4dp"
+            android:text="分享"
+            android:textColor="#ffffff" />
+    </RelativeLayout>
+
+    <RelativeLayout
+        android:id="@+id/umeng_socialize_follow"
+        android:layout_width="fill_parent"
+        android:layout_height="40dp"
+        android:layout_alignParentBottom="true"
+        android:background="#AAAAAA"
+        android:visibility="visible">
+
+        <CheckBox
+            android:id="@+id/umeng_socialize_follow_check"
+            android:layout_width="20dp"
+            android:layout_height="20dp"
+            android:layout_centerVertical="true"
+            android:layout_marginLeft="20dp"
+            android:checked="true"
+            android:visibility="gone" />
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerVertical="true"
+            android:layout_marginLeft="15dp"
+            android:layout_toRightOf="@id/umeng_socialize_follow_check"
+            android:text="关注官方微博"
+            android:textColor="#f8f8f8"
+            android:textSize="16sp"
+            android:visibility="gone" />
+    </RelativeLayout>
+
+    <!--<LinearLayout-->
+        <!--android:id="@+id/webView_container"-->
+        <!--android:layout_width="match_parent"-->
+        <!--android:layout_height="match_parent"-->
+        <!--android:layout_above="@id/umeng_socialize_follow"-->
+        <!--android:layout_below="@id/umeng_socialize_titlebar"-->
+        <!--android:orientation="horizontal"-->
+        <!--android:visibility="visible" />-->
+
+    <WebView
+        android:id="@+id/webView"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent"
+        android:background="#F2F5F6"
+        android:layout_above="@id/umeng_socialize_follow"
+        android:layout_below="@id/umeng_socialize_titlebar"
+        android:visibility="visible" />
+
+    <RelativeLayout
+        android:id="@+id/progress_bar_parent"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent"
+        android:layout_below="@id/umeng_socialize_titlebar"
+        android:background="#F2F5F6" >
+
+        <LinearLayout
+            android:layout_width="80dp"
+            android:layout_height="80dp"
+            android:layout_centerInParent="true"
+            android:orientation="horizontal">
+
+            <ProgressBar
+                android:layout_width="fill_parent"
+                android:layout_height="fill_parent"
+                android:layout_margin="10dp" />
+        </LinearLayout>
+    </RelativeLayout>
+
+</RelativeLayout>

+ 137 - 0
app/src/main/res/layout-um/umeng_socialize_share.xml

@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="#D4E0E5"
+    android:id="@+id/root"
+    android:orientation="vertical">
+
+    <RelativeLayout
+        android:id="@+id/umeng_socialize_share_titlebar"
+        android:layout_width="match_parent"
+        android:layout_height="54dp"
+        android:background="#0086DC">
+
+        <TextView
+            android:id="@+id/umeng_title"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerInParent="true"
+            android:text=""
+            android:textColor="#ffffff"
+            android:textSize="18sp" />
+
+        <RelativeLayout
+            android:id="@+id/umeng_back"
+            android:layout_width="50dp"
+            android:layout_height="match_parent"
+            android:onClick="onCancel"
+            android:visibility="visible">
+
+            <ImageButton
+                android:layout_width="12dp"
+                android:layout_height="20dp"
+                android:layout_centerVertical="true"
+                android:layout_marginLeft="15dp"
+                android:background="@drawable/umeng_socialize_back_icon"
+                android:clickable="false"
+                android:scaleType="center" />
+        </RelativeLayout>
+
+        <TextView
+            android:id="@+id/umeng_share_btn"
+            android:layout_width="wrap_content"
+            android:layout_height="match_parent"
+            android:layout_alignParentRight="true"
+            android:layout_centerInParent="true"
+            android:gravity="center_vertical"
+            android:paddingLeft="15dp"
+            android:paddingRight="15dp"
+            android:text="分享"
+            android:textColor="#ffffff"
+            android:textSize="15sp" />
+    </RelativeLayout>
+
+    <EditText
+        android:id="@+id/umeng_socialize_share_edittext"
+        android:layout_width="fill_parent"
+        android:layout_height="180dp"
+        android:layout_below="@id/umeng_socialize_share_titlebar"
+        android:paddingLeft="15dp"
+        android:paddingRight="15dp"
+        android:paddingTop="8dp"
+        android:background="#ffffff"
+        android:bufferType="spannable"
+        android:gravity="top"
+        android:hint="编辑分享内容"
+        android:lineSpacingExtra="3dp"
+        android:paddingBottom="10dp"
+        android:textColor="#000000"
+        android:textSize="15sp" />
+
+    <TextView
+        android:id="@+id/umeng_socialize_share_word_num"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_alignRight="@id/umeng_socialize_share_edittext"
+        android:background="#ffffff"
+        android:layout_below="@id/umeng_socialize_share_edittext"
+        android:paddingBottom="10dp"
+        android:paddingRight="15dp"
+        android:gravity="right"
+        android:singleLine="true"
+        android:textColor="#98999B"
+        android:textSize="14sp" />
+
+    <RelativeLayout
+        android:id="@+id/umeng_socialize_share_bottom_area"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@id/umeng_socialize_share_word_num"
+        android:layout_marginLeft="15dp"
+        android:layout_marginRight="15dp"
+        android:background="#F2F5F6"
+        android:visibility="gone">
+        <RelativeLayout
+            android:layout_width="62dp"
+            android:layout_height="62dp"
+            android:layout_centerVertical="true"
+            android:layout_marginBottom="15dp"
+            android:layout_marginLeft="15dp"
+            android:id="@+id/umeng_image_edge"
+            android:layout_marginTop="15dp"
+           android:background="@drawable/umeng_socialize_edit_bg"
+            >
+        <ImageView
+            android:id="@+id/umeng_share_icon"
+            android:layout_width="60dp"
+            android:layout_height="60dp"
+           android:layout_centerInParent="true"
+            android:src="#2c3035" />
+        </RelativeLayout>
+    <TextView
+        android:layout_width="280dp"
+        android:id="@+id/umeng_web_title"
+        android:layout_toRightOf="@id/umeng_image_edge"
+        android:layout_marginLeft="40dp"
+        android:layout_marginTop="20dp"
+        android:textColor="#575A5C"
+        android:singleLine="true"
+        android:textSize="14sp"
+        android:visibility="gone"
+        android:layout_height="wrap_content" />
+
+    <ImageView
+        android:id="@+id/umeng_del"
+        android:layout_width="20dp"
+        android:layout_height="20dp"
+        android:layout_alignRight="@id/umeng_image_edge"
+        android:layout_alignTop="@id/umeng_image_edge"
+        android:layout_marginRight="-10dp"
+        android:layout_marginTop="-10dp"
+        android:background="@drawable/umeng_socialize_delete" />
+
+
+    </RelativeLayout>
+
+</RelativeLayout>

+ 10 - 0
app/src/main/res/values-um/umeng_socialize_shareview_strings.xml

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="umeng_socialize_sharetosina">分享到新浪微博</string>
+    <string name="umeng_socialize_sharetodouban">分享到豆瓣</string>
+    <string name="umeng_socialize_sharetorenren">分享到人人网</string>
+
+    <string name="umeng_socialize_sharetotencent">分享到腾讯微博</string>
+    <string name="umeng_socialize_sharetotwitter">分享到twitter</string>
+    <string name="umeng_socialize_sharetolinkin">分享到领英</string>
+</resources>

+ 82 - 0
app/src/main/res/values-um/umeng_socialize_style.xml

@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+    <!--<style name="ACPLDialog">-->
+        <!--<item name="android:windowFrame">@null</item>-->
+        <!--<item name="android:windowNoTitle">true</item>-->
+        <!--<item name="android:windowIsFloating">true</item>-->
+        <!--<item name="android:windowContentOverlay">@null</item>-->
+    <!--</style>-->
+    <!--<style name="umeng_socialize_action_bar_itemlayout">-->
+        <!--<item name="android:layout_height">fill_parent</item>-->
+        <!--<item name="android:layout_width">fill_parent</item>-->
+        <!--<item name="android:layout_weight">1</item>-->
+        <!--<item name="android:paddingLeft">4dp</item>-->
+        <!--<item name="android:paddingTop">4dp</item>-->
+        <!--<item name="android:paddingRight">4dp</item>-->
+        <!--<item name="android:gravity">center_vertical</item>-->
+    <!--</style>-->
+
+    <!--<style name="umeng_socialize_action_bar_item_im">-->
+        <!--<item name="android:layout_width">25dp</item>-->
+        <!--<item name="android:layout_height">25dp</item>-->
+        <!--<item name="android:scaleType">fitCenter</item>-->
+        <!--<item name="android:layout_centerVertical">true</item>-->
+    <!--</style>-->
+
+    <!--<style name="umeng_socialize_action_bar_item_tv">-->
+        <!--<item name="android:layout_width">wrap_content</item>-->
+        <!--<item name="android:layout_height">fill_parent</item>-->
+        <!--<item name="android:layout_marginLeft">5dp</item>-->
+        <!--<item name="android:text">999</item>-->
+        <!--<item name="android:gravity">center</item>-->
+        <!--<item name="android:textColor">#ffffff</item>-->
+        <!--<item name="android:textSize">12sp</item>-->
+        <!--<item name="android:textStyle">bold</item>-->
+    <!--</style>-->
+
+    <!--网页授权的布局-->
+    <style name="umeng_socialize_popup_dialog" parent="@android:style/Theme.Dialog">
+        <item name="android:windowFrame">@null</item>
+        <item name="android:windowIsFloating">true</item>
+        <item name="android:windowIsTranslucent">true</item>
+        <item name="android:windowNoTitle">true</item>
+        <item name="android:background">@android:color/transparent</item>
+        <item name="android:windowBackground">@android:color/transparent</item>
+        <item name="android:backgroundDimEnabled">true</item>
+        <item name="android:backgroundDimAmount">0.6</item>
+    </style>
+
+
+    <!--<style name="Theme.UMDialog" parent="android:style/Theme.Dialog">-->
+        <!--<item name="android:windowNoTitle">true</item>-->
+        <!--<item name="android:windowBackground">@android:color/transparent</item>-->
+    <!--</style>-->
+
+    <style name="Theme.UMDefault" parent="android:style/Theme.NoTitleBar"></style>
+
+    <!--<style name="umeng_socialize_divider">-->
+        <!--<item name="android:layout_width">fill_parent</item>-->
+        <!--<item name="android:layout_height">1dp</item>-->
+        <!--<item name="android:background">@color/umeng_socialize_divider</item>-->
+    <!--</style>-->
+
+    <!--<style name="umeng_socialize_list_item">-->
+        <!--<item name="android:layout_width">fill_parent</item>-->
+        <!--<item name="android:layout_height">55dp</item>-->
+        <!--<item name="android:background">@color/umeng_socialize_list_item_bgcolor</item>-->
+        <!--<item name="android:paddingBottom">5dp</item>-->
+        <!--<item name="android:paddingTop">5dp</item>-->
+    <!--</style>-->
+
+    <!--<style name="umeng_socialize_edit_padding">-->
+        <!--<item name="android:layout_width">fill_parent</item>-->
+        <!--<item name="android:layout_height">fill_parent</item>-->
+        <!--<item name="android:background">@color/umeng_socialize_list_item_bgcolor</item>-->
+        <!--<item name="android:layout_marginLeft">6dp</item>-->
+        <!--<item name="android:layout_marginRight">6dp</item>-->
+        <!--<item name="android:layout_marginTop">6dp</item>-->
+        <!--<item name="android:layout_marginBottom">6dp</item>-->
+    <!--</style>-->
+
+
+</resources>