Ver código fonte

Merge remote-tracking branch 'origin/sheep_develop' into sheep_develop

zengjiebin 7 anos atrás
pai
commit
1348b909e5

+ 129 - 38
app/src/main/java/com/sheep/gamegroup/util/ViewUtil.java

@@ -80,6 +80,11 @@ import com.sheep.jiuyan.samllsheep.utils.ClassFileHelper;
 import com.sheep.jiuyan.samllsheep.utils.G;
 import com.sheep.jiuyan.samllsheep.utils.PackageUtil;
 import com.sheep.jiuyan.samllsheep.utils.SpUtils;
+import com.umeng.socialize.ShareAction;
+import com.umeng.socialize.UMShareListener;
+import com.umeng.socialize.bean.SHARE_MEDIA;
+import com.umeng.socialize.media.UMImage;
+import com.umeng.socialize.media.UMWeb;
 
 import org.afinal.simplecache.ACache;
 
@@ -212,17 +217,17 @@ public class ViewUtil {
         CommonUtil.getInstance().robTask(new Action1<RobTask>() {
             @Override
             public void call(RobTask robTask) {
-                if(robTask != null){
+                if (robTask != null) {
                     try {
                         mRobTask = robTask;
                         SpUtils.saveOrder("order", mRobTask.getOrder());
                         SheepApp.getInstance().setOrder(mRobTask.getOrder());
-                        tvDutyMoney.setText("+"+mRobTask.getM().getBonus() + "元");//设置任务奖励金额
-                        tvTitel.setText(mRobTask.getM().getName()+"");//设置任务名字--getTask().getTask_name()
+                        tvDutyMoney.setText("+" + mRobTask.getM().getBonus() + "元");//设置任务奖励金额
+                        tvTitel.setText(mRobTask.getM().getName() + "");//设置任务名字--getTask().getTask_name()
                         GlideImageLoader.setImage(ivIcon, mRobTask.getM().getTask().getIcon());//设置任务图标
                     } catch (Exception e) {
                     }
-                }else {
+                } else {
                     G.showToast("任务已被抢光!请实时关注任务发布!");
                 }
             }
@@ -247,14 +252,14 @@ public class ViewUtil {
         final TextView tvDutyMoney = view.findViewById(R.id.tv_robduty_money);
         ViewUtil.setDefaultText(tvTitel);
         ViewUtil.setDefaultText(tvDutyMoney);
-        if(robTask != null){
+        if (robTask != null) {
             mRobTask = robTask;
             SpUtils.saveOrder("order", mRobTask.getOrder());
             SheepApp.getInstance().setOrder(mRobTask.getOrder());
-            tvDutyMoney.setText("+"+mRobTask.getM().getBonus() + "元");//设置任务奖励金额
-            tvTitel.setText(mRobTask.getM().getName()+"");//设置任务名字--getTask().getTask_name()
+            tvDutyMoney.setText("+" + mRobTask.getM().getBonus() + "元");//设置任务奖励金额
+            tvTitel.setText(mRobTask.getM().getName() + "");//设置任务名字--getTask().getTask_name()
             GlideImageLoader.setImage(ivIcon, mRobTask.getM().getTask().getIcon());//设置任务图标
-        }else {
+        } else {
             mRobTask = getTask(ivIcon, tvTitel, tvDutyMoney);
         }
         final PopupWindow popupWindow = new PopupWindow(mActivity);
@@ -373,7 +378,7 @@ public class ViewUtil {
                 if (clipData != null && clipData.getItemCount() > 0) {
                     // 从数据集中获取(粘贴)第一条文本数据
                     CharSequence codetext = clipData.getItemAt(0).getText();
-                    if (!TextUtils.isEmpty(codetext)){
+                    if (!TextUtils.isEmpty(codetext)) {
                         edInvitationCode.setText(codetext);
                     }
                 }
@@ -480,11 +485,11 @@ public class ViewUtil {
 
     public static View setBottomLine(final XRecyclerView view_list, final Action1<String> action1) {
         View view = LayoutInflater.from(SheepApp.getInstance()).inflate(action1 != null ? R.layout.empty : R.layout.common_foot_view, null);
-        if(view_list != null){
+        if (view_list != null) {
             view_list.setFootView(view, new CustomFooterViewCallBack() {
                 @Override
                 public void onLoadingMore(View yourFooterView) {
-                    if(action1 != null) {
+                    if (action1 != null) {
                         action1.call("onLoadingMore");
                     } else {
                         TextView bottom_line_text = yourFooterView.findViewById(R.id.bottom_line_text);
@@ -494,7 +499,7 @@ public class ViewUtil {
 
                 @Override
                 public void onLoadMoreComplete(View yourFooterView) {
-                    if(action1 != null) {
+                    if (action1 != null) {
                         action1.call("onLoadMoreComplete");
                     } else {
                         TextView bottom_line_text = yourFooterView.findViewById(R.id.bottom_line_text);
@@ -502,7 +507,7 @@ public class ViewUtil {
                         yourFooterView.setOnClickListener(new View.OnClickListener() {
                             @Override
                             public void onClick(View view) {
-                                if(canScrollToTop())
+                                if (canScrollToTop())
                                     view_list.scrollToPosition(0);
                             }
                         });
@@ -511,7 +516,7 @@ public class ViewUtil {
 
                 @Override
                 public void onSetNoMore(View yourFooterView, boolean noMore) {
-                    if(action1 != null) {
+                    if (action1 != null) {
                         action1.call("onSetNoMore");
                     } else {
                         yourFooterView.setVisibility(isEmpty() ? View.GONE : View.VISIBLE);
@@ -520,16 +525,18 @@ public class ViewUtil {
                         yourFooterView.setOnClickListener(new View.OnClickListener() {
                             @Override
                             public void onClick(View view) {
-                                if(canScrollToTop())
+                                if (canScrollToTop())
                                     view_list.scrollToPosition(0);
                             }
                         });
                     }
                 }
-                private boolean isEmpty(){
+
+                private boolean isEmpty() {
                     return view_list.getAdapter().getItemCount() == 0;
                 }
-                private boolean canScrollToTop(){
+
+                private boolean canScrollToTop() {
                     return view_list.getAdapter().getItemCount() > 10;
                 }
             });
@@ -537,7 +544,7 @@ public class ViewUtil {
         return view;
     }
 
-    public static View setBottomLine(final SmartRefreshLayout refreshLayout, final Action1<String> action1){
+    public static View setBottomLine(final SmartRefreshLayout refreshLayout, final Action1<String> action1) {
         View view = LayoutInflater.from(SheepApp.getInstance()).inflate(action1 != null ? R.layout.empty : R.layout.common_foot_view, null);
         TextView bottom_line_text = view.findViewById(R.id.bottom_line_text);
         bottom_line_text.setText("点击加载更多...");
@@ -549,6 +556,7 @@ public class ViewUtil {
         });
         return view;
     }
+
     /**
      * popwindow消失监听类,消失恢复window透明度
      */
@@ -593,13 +601,49 @@ public class ViewUtil {
         View view = LayoutInflater.from(activity).inflate(R.layout.x_recommend_dialog, dialog_center_ll, true);
         dialog_title.setText("推荐给好友");
 
-        TextView withdrawal = view.findViewById(R.id.withdrawal);
-        TextView tv_link = view.findViewById(R.id.tv_link);
+        View wx = view.findViewById(R.id.but_share_wx);
+        View qq = view.findViewById(R.id.but_share_qq);
+        View pyq = view.findViewById(R.id.but_share_pyq);
+        View zone = view.findViewById(R.id.but_share_zone);
+        final View url = view.findViewById(R.id.but_share_link);
         TextView save_pic = view.findViewById(R.id.save_pic);
         final ImageView iv_qr = view.findViewById(R.id.iv_qr);
 
-        if (!TextUtils.isEmpty(link))
-            tv_link.setText(link);
+        /* 分享到微信 */
+        wx.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                shareAction(activity, link, SHARE_MEDIA.WEIXIN);
+                dialog.dismiss();
+            }
+        });
+
+        /* 分享到QQ */
+        qq.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                shareAction(activity, link, SHARE_MEDIA.QQ);
+                dialog.dismiss();
+            }
+        });
+
+        /* 分享到朋友圈 */
+        pyq.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                shareAction(activity, link, SHARE_MEDIA.WEIXIN_CIRCLE);
+                dialog.dismiss();
+            }
+        });
+
+        /* 分享到QQ空间 */
+        zone.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                shareAction(activity, link, SHARE_MEDIA.QZONE);
+                dialog.dismiss();
+            }
+        });
 
         GlideImageLoader.saveAndSetRqImage(iv_qr, link, 800);
         dialog_close.setOnClickListener(new View.OnClickListener() {
@@ -609,12 +653,12 @@ public class ViewUtil {
             }
         });
 
-        withdrawal.setOnClickListener(new View.OnClickListener() {
+        url.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 QR_COPY.onEvent();
                 StringUtils.CopyText(link);
-                G.showToast("复制链接成功");
+                G.showToast("复制链接成功!");
             }
         });
 
@@ -643,14 +687,58 @@ public class ViewUtil {
     }
 
     /**
+     * 创建链接并分享
+     *
+     * @param activity 上下文参数
+     * @param url      分享链接
+     * @param media    分享平台
+     */
+    private static void shareAction(Activity activity, String url, SHARE_MEDIA media) {
+        /* 缩略图 */
+        UMImage image = new UMImage(activity, R.drawable.icon);
+        /* URL */
+        UMWeb web = new UMWeb(url);
+        /* 标题 */
+        web.setTitle("赚钱就来小绵羊");
+        web.setThumb(image);
+        web.setDescription("更懂你的赚钱工具,超多福利,超多赏金,拿到你手软!");
+        ShareAction action = new ShareAction(activity);
+        action.setPlatform(media);
+        action.withMedia(web);
+        action.setCallback(new UMShareListener() {
+            @Override
+            public void onStart(SHARE_MEDIA share_media) {
+
+            }
+
+            @Override
+            public void onResult(SHARE_MEDIA share_media) {
+                G.showToast("分享成功!");
+            }
+
+            @Override
+            public void onError(SHARE_MEDIA share_media, Throwable throwable) {
+                G.showToast("分享失败!");
+            }
+
+            @Override
+            public void onCancel(SHARE_MEDIA share_media) {
+                G.showToast("您已取消分享!");
+            }
+        });
+        action.share();
+    }
+
+    /**
      * 领取福利成功的对话框
      *
      * @param activity
      * @param item
      */
     public static void showGetWelfareDialog(final Activity activity, final GiftBagApp item) {
-        showGetWelfareDialog(activity, item,null);
+        showGetWelfareDialog(activity, item, null);
     }
+
     public static void showGetWelfareDialog(final Activity activity, final GiftBagApp item, final String packageName) {
         View dialog_parent = View.inflate(activity, R.layout.dialog_parent, null);
         final AlertDialog dialog = new AlertDialog.Builder(activity, R.style.MyDialogActivityTheme)
@@ -686,9 +774,9 @@ public class ViewUtil {
             @Override
             public void onClick(View v) {
                 dialog.dismiss();
-                GIFT_BAG_DIALOG_START_APP.onEvent("gift_bag_id", item.getGift_bag().getId(), "package_name", TextUtils.isEmpty(packageName)?item.getApp().getPackage_names():packageName);
+                GIFT_BAG_DIALOG_START_APP.onEvent("gift_bag_id", item.getGift_bag().getId(), "package_name", TextUtils.isEmpty(packageName) ? item.getApp().getPackage_names() : packageName);
                 //启动游戏
-                PackageUtil.startApp(activity, TextUtils.isEmpty(packageName)?item.getApp().getPackage_names():packageName);
+                PackageUtil.startApp(activity, TextUtils.isEmpty(packageName) ? item.getApp().getPackage_names() : packageName);
             }
         });
         dialog_btn_left.setOnClickListener(new View.OnClickListener() {
@@ -1232,16 +1320,17 @@ public class ViewUtil {
         payEntity.setGame_name(gameName);
         newInstance().showGamePayAccount(activity, payEntity);
     }
+
     public static void showGamePayAccount(Activity activity, TaskEty taskEty) {
         PayEntity payEntity = new PayEntity();
         payEntity.setGame_id(taskEty.getThird_task_id());
         payEntity.setGame_name(taskEty.getName());
-        payEntity.setTask_type(taskEty.getTask_type()+"");
+        payEntity.setTask_type(taskEty.getTask_type() + "");
         newInstance().showGamePayAccount(activity, payEntity);
     }
 
     public void showGamePayAccount(Activity activity, PayEntity payEntity) {
-        GAME_INSTEAD_OF_RECHARGE_PLATFORM.onEvent("game_id", payEntity.getGame_id()+"", "name", payEntity.getGame_name()+"");
+        GAME_INSTEAD_OF_RECHARGE_PLATFORM.onEvent("game_id", payEntity.getGame_id() + "", "name", payEntity.getGame_name() + "");
         new DialogPayAccount(activity, payEntity).showPayaccount();
     }
 
@@ -1403,8 +1492,10 @@ public class ViewUtil {
     public void showAddAccount(Activity activity, Action1<Integer> action1) {
         new DialogAddAccount(activity).showAddAccount(action1);
     }
+
     /**
      * 幂动详情diaolog
+     *
      * @param activity
      * @param action1
      */
@@ -1412,7 +1503,7 @@ public class ViewUtil {
         new DialogMidong(activity).showMidongDialog(isSign, data);
     }
 
-    public static void showShareDialog(final Activity activity, final String url, final String description){
+    public static void showShareDialog(final Activity activity, final String url, final String description) {
         View dialog_parent = View.inflate(activity, R.layout.ask_to_share, null);
         final AlertDialog dialog = new AlertDialog.Builder(activity, R.style.AppTheme_Dialog_Alert)
                 .setView(dialog_parent)
@@ -1474,7 +1565,7 @@ public class ViewUtil {
         try {
             dialog.show();
             Window window = dialog.getWindow();
-            if(window != null) {
+            if (window != null) {
                 window.setGravity(Gravity.BOTTOM);
                 WindowManager.LayoutParams params = window.getAttributes();
                 params.width = G.WIDTH > G.HEIGHT ? G.HEIGHT : G.WIDTH;
@@ -1540,12 +1631,12 @@ public class ViewUtil {
      * R.color.green
      * R.color.yellow_text_light
      * R.color.black_text_gray
-     *
-     android:textColor="#cc8e8e8e"
-     android:textSize="10sp"
-     R.drawable.shape_blue_stroke_rectangle_no_lb
+     * <p>
+     * android:textColor="#cc8e8e8e"
+     * android:textSize="10sp"
+     * R.drawable.shape_blue_stroke_rectangle_no_lb
      */
-    public View paintView(Context context, String text, int color, int drawable){
+    public View paintView(Context context, String text, int color, int drawable) {
 
         View view = LayoutInflater.from(context).inflate(R.layout.game_tag_textview, null, false);
         TextView textView = view.findViewById(R.id.user_label_tv);
@@ -1555,9 +1646,9 @@ public class ViewUtil {
         textView.setBackgroundResource(drawable);
         textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10);
         int padding = textView.getContext().getResources().getDimensionPixelSize(R.dimen.content_padding_2);
-        textView.setPadding(2* padding, padding, 2 * padding, padding);
+        textView.setPadding(2 * padding, padding, 2 * padding, padding);
         LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(textView.getLayoutParams());
-        lp.setMargins(0,0,padding,0);
+        lp.setMargins(0, 0, padding, 0);
         textView.setLayoutParams(lp);
 
         return view;

+ 8 - 8
app/src/main/res/layout/dialog_parent.xml

@@ -13,24 +13,24 @@
             android:id="@+id/dialog_center_ll"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:paddingTop="64dp"
             android:background="@drawable/shape_white_solid_rectangle"
             android:gravity="center"
-            android:paddingBottom="@dimen/dp_10"
+            android:orientation="vertical"
             android:paddingStart="@dimen/dp_10"
+            android:paddingTop="64dp"
             android:paddingEnd="@dimen/dp_10"
-            android:orientation="vertical">
-        </LinearLayout>
+            android:paddingBottom="@dimen/dp_10" />
+
         <TextView
             android:id="@+id/dialog_title"
             android:layout_width="match_parent"
             android:layout_height="54dp"
-            android:text="提示"
-            android:textSize="20sp"
+            android:background="@drawable/shape_main_solid_rectangle_top"
             android:gravity="center"
-            android:textColor="@android:color/white"
             android:padding="@dimen/dp_10"
-            android:background="@drawable/shape_main_solid_rectangle_top" />
+            android:text="提示"
+            android:textColor="@android:color/white"
+            android:textSize="20sp" />
 
         <ImageView
             android:id="@+id/dialog_close"

+ 163 - 59
app/src/main/res/layout/x_recommend_dialog.xml

@@ -3,69 +3,24 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent">
 
-
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="left"
-        android:layout_marginBottom="@dimen/content_padding_small"
         android:layout_marginStart="10dp"
-        android:layout_marginEnd="10dp"
         android:layout_marginTop="@dimen/content_padding_small"
-        android:text="请小绵羊下载链接发给好友"
-        android:textColor="@color/black_text_deep"
-        android:textSize="@dimen/text_size_15" />
-
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="40dp"
-        android:gravity="center_vertical"
-        android:orientation="horizontal">
-
-        <TextView
-            android:id="@+id/tv_link"
-            android:layout_width="0dp"
-            android:layout_height="30dp"
-            android:layout_weight="1"
-            android:background="@drawable/recharge_bg_angle_blue_normal"
-            android:gravity="left|center_vertical"
-            android:lines="1"
-            android:maxLines="1"
-            android:paddingLeft="@dimen/content_padding_10"
-            android:paddingRight="@dimen/content_padding_10"
-            android:singleLine="true"
-            android:textColor="#999999"
-            android:textSize="@dimen/text_size_15" />
-
-        <TextView
-            android:id="@+id/withdrawal"
-            style="@style/style_button"
-            android:layout_width="wrap_content"
-            android:layout_height="@dimen/content_padding_30"
-            android:layout_marginBottom="5dp"
-            android:layout_marginStart="10dp"
-            android:layout_marginTop="5dp"
-            android:text="复制链接"
-            android:textSize="@dimen/text_size_12" />
-    </LinearLayout>
-
-
-    <TextView
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginStart="10dp"
         android:layout_marginEnd="10dp"
-        android:layout_marginTop="5dp"
-        android:text="通过链接加入小绵羊即为你的好友下线,好友完成任务你可以额外获得20%的提成奖励哦!"
-        android:textColor="@color/txt_black_cc444444"
-        android:textSize="@dimen/text_size_12" />
-
+        android:layout_marginBottom="@dimen/content_padding_small"
+        android:text="保存二维码:"
+        android:textColor="@color/black_text_deep"
+        android:textSize="@dimen/text_size_15"
+        android:visibility="gone" />
 
     <RelativeLayout
-        android:layout_width="180dp"
-        android:layout_height="180dp"
+        android:layout_width="160dp"
+        android:layout_height="160dp"
         android:layout_gravity="center_horizontal"
-        android:layout_margin="@dimen/content_padding_10">
+        android:layout_margin="5dp">
 
         <ImageView
             android:id="@+id/iv_qr"
@@ -86,17 +41,166 @@
     <TextView
         android:id="@+id/save_pic"
         style="@style/style_button"
-        android:layout_marginBottom="20dp"
-        android:layout_marginTop="20dp"
+        android:layout_marginTop="5dp"
         android:text="保存二维码至手机" />
 
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="center"
-        android:layout_marginTop="10dp"
-        android:layout_marginBottom="20dp"
-        android:text="邀请好友下载小绵羊App,开启赚钱之路"
+        android:layout_marginTop="5dp"
+        android:layout_marginBottom="5dp"
+        android:text="将小绵羊二维码保存至手机相册,随时随地发送给您的朋友"
         android:textColor="#666666"
-        android:textSize="13sp" />
+        android:textSize="10sp"
+        android:textStyle="bold"
+        android:visibility="gone" />
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="5dp"
+        android:layout_marginBottom="5dp"
+        android:gravity="center"
+        android:orientation="vertical">
+
+        <TextView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginStart="10dp"
+            android:gravity="start"
+            android:text="点击下方分享给好友(享受任务奖励提成):"
+            android:textColor="@color/txt_black_cc444444"
+            android:textSize="10sp" />
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:gravity="center"
+            android:orientation="horizontal"
+            android:paddingTop="10dp"
+            android:paddingBottom="10dp">
+
+            <LinearLayout
+                android:id="@+id/but_share_wx"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:orientation="vertical">
+
+                <ImageView
+                    android:layout_width="50dp"
+                    android:layout_height="50dp"
+                    android:src="@drawable/umeng_socialize_wechat" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="微信"
+                    android:textSize="10sp"
+                    android:textStyle="bold" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:id="@+id/but_share_qq"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:orientation="vertical">
+
+                <ImageView
+                    android:layout_width="50dp"
+                    android:layout_height="50dp"
+                    android:src="@drawable/umeng_socialize_qq" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="QQ"
+                    android:textSize="10sp"
+                    android:textStyle="bold" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:id="@+id/but_share_pyq"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:orientation="vertical">
+
+                <ImageView
+                    android:layout_width="50dp"
+                    android:layout_height="50dp"
+                    android:src="@drawable/umeng_socialize_wxcircle" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="朋友圈"
+                    android:textSize="10sp"
+                    android:textStyle="bold" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:id="@+id/but_share_zone"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:orientation="vertical">
+
+                <ImageView
+                    android:layout_width="50dp"
+                    android:layout_height="50dp"
+                    android:src="@drawable/umeng_socialize_qzone" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="QQ空间"
+                    android:textSize="10sp"
+                    android:textStyle="bold" />
+            </LinearLayout>
+
+            <LinearLayout
+                android:id="@+id/but_share_link"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:orientation="vertical">
+
+                <ImageView
+                    android:layout_width="50dp"
+                    android:layout_height="50dp"
+                    android:src="@drawable/umeng_socialize_copyurl" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="复制链接"
+                    android:textSize="10sp"
+                    android:textStyle="bold" />
+            </LinearLayout>
+        </LinearLayout>
+
+    </LinearLayout>
+
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginStart="10dp"
+        android:layout_marginTop="5dp"
+        android:layout_marginEnd="10dp"
+        android:text="注:通过链接加入小绵羊即为你的好友下线,好友完成任务你可以额外获得20%的提成奖励哦!"
+        android:textColor="@color/txt_black_cc444444"
+        android:textSize="@dimen/text_size_12" />
 </merge>