Commit 9f5c007d authored by jianglx's avatar jianglx

修改禅道上的bug

parent 391c1631
...@@ -93,5 +93,5 @@ public class ApiConfig { ...@@ -93,5 +93,5 @@ public class ApiConfig {
public static String HTTP_URL_CONSUME_LIST = RvFrameConfig.HOST + "/api/admin/walletDetail/page"; public static String HTTP_URL_CONSUME_LIST = RvFrameConfig.HOST + "/api/admin/walletDetail/page";
public static String HTTP_URL_SELECTED_ACTIVITIES = RvFrameConfig.HOST + "/api/activity/activityList/app/unauth/activity/findAll"; // 精选活动 public static String HTTP_URL_SELECTED_ACTIVITIES = RvFrameConfig.HOST + "/api/activity/homeActivities/app/unauth/activity/findAll"; // 精选活动
} }
...@@ -129,7 +129,7 @@ public class MemberListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol ...@@ -129,7 +129,7 @@ public class MemberListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
} }
}); });
viewHolder.img_agree.setImageResource(hasAgree ? R.drawable.common_icon_like_selected : R.drawable.common_icon_radio_unche); viewHolder.img_agree.setImageResource(hasAgree ? R.drawable.common_icon_selected : R.drawable.common_icon_radio_unche);
viewHolder.btn_buy.setBackgroundResource(hasAgree ? R.drawable.shape_rv_bg_dark_yellow : R.drawable.shape_rv_bg_btn_grap_yellow); viewHolder.btn_buy.setBackgroundResource(hasAgree ? R.drawable.shape_rv_bg_dark_yellow : R.drawable.shape_rv_bg_btn_grap_yellow);
viewHolder.img_agree.setOnClickListener(new View.OnClickListener() { viewHolder.img_agree.setOnClickListener(new View.OnClickListener() {
@Override @Override
...@@ -141,7 +141,7 @@ public class MemberListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol ...@@ -141,7 +141,7 @@ public class MemberListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
viewHolder.btn_buy.setBackgroundResource(R.drawable.shape_rv_bg_btn_grap_yellow); viewHolder.btn_buy.setBackgroundResource(R.drawable.shape_rv_bg_btn_grap_yellow);
} else { } else {
hasAgree = true; hasAgree = true;
viewHolder.img_agree.setImageResource(R.drawable.common_icon_like_selected); viewHolder.img_agree.setImageResource(R.drawable.common_icon_selected);
viewHolder.btn_buy.setBackgroundResource(R.drawable.shape_rv_bg_dark_yellow); viewHolder.btn_buy.setBackgroundResource(R.drawable.shape_rv_bg_dark_yellow);
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<string name="tv_title_member_center">会员中心</string> <string name="tv_title_member_center">会员中心</string>
<string name="tv_outdoors_act">户外活动</string> <string name="tv_outdoors_act">户外活动</string>
<string name="tv_agreement">同意欣新房车 《会员服务协议会员规则》 </string> <string name="tv_agreement">同意房车 《会员服务协议会员规则》 </string>
<string name="tv_use_now">马上使用</string> <string name="tv_use_now">马上使用</string>
......
...@@ -49,6 +49,8 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> { ...@@ -49,6 +49,8 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
ImageView imgParent; ImageView imgParent;
@BindView(R2.id.tv_parent_phone) @BindView(R2.id.tv_parent_phone)
TextView tvParentPhone; TextView tvParentPhone;
@BindView(R2.id.tv_ruler)
TextView tvRuler;
@BindView(R2.id.tv_more_detail) @BindView(R2.id.tv_more_detail)
TextView tvMoreDetail; TextView tvMoreDetail;
...@@ -108,7 +110,7 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> { ...@@ -108,7 +110,7 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
} }
@OnClick({R2.id.tv_weixin, R2.id.tv_weixin_circle, R2.id.tv_bill, R2.id.tv_more, R2.id.tv_more_detail, R2.id.ll_activation, R2.id.ll_comein, R2.id.ll_invite}) @OnClick({R2.id.tv_weixin, R2.id.tv_weixin_circle, R2.id.tv_bill, R2.id.tv_more, R2.id.tv_more_detail, R2.id.ll_activation, R2.id.ll_comein, R2.id.ll_invite,R2.id.tv_ruler})
public void onViewClicked(View view) { public void onViewClicked(View view) {
int id = view.getId(); int id = view.getId();
if (TextUtils.isEmpty(shareUrl)) { if (TextUtils.isEmpty(shareUrl)) {
......
package com.rv.share.adapter; package com.rv.share.adapter;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.text.TextUtils;
import com.base.utils.ui.image.round.RoundImageView; import com.base.utils.ui.image.round.RoundImageView;
import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseQuickAdapter;
...@@ -20,9 +21,18 @@ public class ActivationListAdapter extends BaseQuickAdapter<InviteListBean.invit ...@@ -20,9 +21,18 @@ public class ActivationListAdapter extends BaseQuickAdapter<InviteListBean.invit
@Override @Override
protected void convert(BaseViewHolder helper, InviteListBean.inviteMember item) { protected void convert(BaseViewHolder helper, InviteListBean.inviteMember item) {
helper.setText(R.id.tv_name, item.getUsername()); helper.setText(R.id.tv_name, dealName(item.getUsername()));
helper.setText(R.id.tv_ac_time, DateUtils.timestampToString1(item.getBindTime())); helper.setText(R.id.tv_ac_time, DateUtils.timestampToString1(item.getBindTime()));
GlideManager.getInstance(mContext).loadImage(item.getHeadUrl(), (RoundImageView) helper.itemView.findViewById(R.id.rimg_header)); GlideManager.getInstance(mContext).loadImage(item.getHeadUrl(), (RoundImageView) helper.itemView.findViewById(R.id.rimg_header));
} }
private String dealName(String name) {
if (!TextUtils.isEmpty(name)) {
if (name.length() == 11) {
return name.substring(0, 3) + "****" + name.substring(7, name.length());
}
}
return name;
}
} }
package com.rv.share.adapter; package com.rv.share.adapter;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.widget.TextView; import android.widget.TextView;
import com.base.utils.ui.image.round.RoundImageView; import com.base.utils.ui.image.round.RoundImageView;
...@@ -24,15 +25,35 @@ public class IncomeListAdapter extends BaseQuickAdapter<IncomeRecordsBean.Income ...@@ -24,15 +25,35 @@ public class IncomeListAdapter extends BaseQuickAdapter<IncomeRecordsBean.Income
@Override @Override
protected void convert(BaseViewHolder helper, IncomeRecordsBean.IncomeItem item) { protected void convert(BaseViewHolder helper, IncomeRecordsBean.IncomeItem item) {
StringBuilder buffer = new StringBuilder(); StringBuilder buffer = new StringBuilder();
buffer.append(item.getUsername()).append("成交").append(item.getPrice()).append("元");
helper.setText(R.id.tv_income_record, buffer.toString());
if (item.getStatus() == 0) {
buffer.append(dealName(item.getUsername())).append("成交").append(item.getPrice()).append("元");
} else if (item.getStatus() == 1) {
buffer.append(dealName(item.getUsername())).append("退款").append(item.getPrice()).append("元");
}
helper.setText(R.id.tv_income_record, buffer.toString());
helper.setText(R.id.tv_income_time, DateUtils.timestampToString1(item.getCrtTime())); helper.setText(R.id.tv_income_time, DateUtils.timestampToString1(item.getCrtTime()));
StringBuilder builder = new StringBuilder(); if (item.getWaiting() == 1 && item.getStatus() == 0) {
builder.append("+").append(item.getCommission()).append("元"); StringBuilder builder = new StringBuilder();
helper.setText(R.id.tv_income_price, builder.toString()); builder.append("+").append(item.getCommission()).append("元");
helper.setText(R.id.tv_income_price, builder.toString());
} else if (item.getWaiting() == 1 && item.getStatus() == 1) {
StringBuilder builder = new StringBuilder();
builder.append("-").append(item.getCommission()).append("元");
helper.setText(R.id.tv_income_price, builder.toString());
} else {
helper.setText(R.id.tv_income_price, "进行中");
}
GlideManager.getInstance(mContext).loadImage(item.getHeadUrl(), (RoundImageView) helper.itemView.findViewById(R.id.rimg_header)); GlideManager.getInstance(mContext).loadImage(item.getHeadUrl(), (RoundImageView) helper.itemView.findViewById(R.id.rimg_header));
} }
private String dealName(String name) {
if (!TextUtils.isEmpty(name)) {
if (name.length() == 11) {
return name.substring(0, 3) + "****" + name.substring(7, name.length());
}
}
return name;
}
} }
package com.rv.share.adapter; package com.rv.share.adapter;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.text.TextUtils;
import com.base.utils.ui.image.round.RoundImageView; import com.base.utils.ui.image.round.RoundImageView;
import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseQuickAdapter;
...@@ -27,7 +28,7 @@ public class InviteListAdapter extends BaseQuickAdapter<InviteListBean.inviteMem ...@@ -27,7 +28,7 @@ public class InviteListAdapter extends BaseQuickAdapter<InviteListBean.inviteMem
@Override @Override
protected void convert(BaseViewHolder helper, InviteListBean.inviteMember item) { protected void convert(BaseViewHolder helper, InviteListBean.inviteMember item) {
helper.setText(R.id.tv_income_record, item.getUsername()); helper.setText(R.id.tv_income_record, dealName(item.getUsername()));
helper.setText(R.id.tv_income_time, DateUtils.timestampToString1(item.getJoinTime())); helper.setText(R.id.tv_income_time, DateUtils.timestampToString1(item.getJoinTime()));
setTimes(effTime, helper, item); setTimes(effTime, helper, item);
...@@ -54,4 +55,13 @@ public class InviteListAdapter extends BaseQuickAdapter<InviteListBean.inviteMem ...@@ -54,4 +55,13 @@ public class InviteListAdapter extends BaseQuickAdapter<InviteListBean.inviteMem
notifyDataSetChanged(); notifyDataSetChanged();
} }
}; };
private String dealName(String name) {
if (!TextUtils.isEmpty(name)) {
if (name.length() == 11) {
return name.substring(0, 3) + "****" + name.substring(7, name.length());
}
}
return name;
}
} }
...@@ -13,10 +13,8 @@ import android.widget.TextView; ...@@ -13,10 +13,8 @@ import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import com.base.utils.ui.datetime.selector.util.TextUtil; import com.base.utils.ui.datetime.selector.util.TextUtil;
import com.frame.rv.config.RvFrameConfig;
import com.rv.component.utils.DisplayUtil; import com.rv.component.utils.DisplayUtil;
import com.rv.home.rv.module.basic.presenter.CommonPresenter; import com.rv.home.rv.module.basic.presenter.CommonPresenter;
import com.rv.share.BillActivity;
import com.rv.share.R; import com.rv.share.R;
import com.rv.share.ReativeBillActivity; import com.rv.share.ReativeBillActivity;
import com.rv.share.view.ShareChoiceDialog; import com.rv.share.view.ShareChoiceDialog;
...@@ -35,17 +33,17 @@ public class SharePresenter extends CommonPresenter { ...@@ -35,17 +33,17 @@ public class SharePresenter extends CommonPresenter {
private ShareChoiceDialog dialog = null; private ShareChoiceDialog dialog = null;
public void setShareImage(Context context, TextView tvWeixin, TextView tvWxCircle, TextView tvBill, TextView tvMore) { public void setShareImage(Context context, TextView tvWeixin, TextView tvWxCircle, TextView tvBill, TextView tvMore) {
Drawable drawable = context.getResources().getDrawable(R.drawable.icon_share_wx); Drawable drawable = context.getResources().getDrawable(R.drawable.icon_share_weixin);
drawable.setBounds(0, 0, DisplayUtil.dip2px(context, drawableSize), DisplayUtil.dip2px(context, drawableSize)); drawable.setBounds(0, 0, DisplayUtil.dip2px(context, drawableSize), DisplayUtil.dip2px(context, drawableSize));
tvWeixin.setCompoundDrawables(null, drawable, null, null); tvWeixin.setCompoundDrawables(null, drawable, null, null);
tvWeixin.setVisibility(View.VISIBLE); tvWeixin.setVisibility(View.VISIBLE);
Drawable drawable1 = context.getResources().getDrawable(R.drawable.icon_share_cir); Drawable drawable1 = context.getResources().getDrawable(R.drawable.icon_share_wx_circle);
drawable1.setBounds(0, 0, DisplayUtil.dip2px(context, drawableSize), DisplayUtil.dip2px(context, drawableSize)); drawable1.setBounds(0, 0, DisplayUtil.dip2px(context, drawableSize), DisplayUtil.dip2px(context, drawableSize));
tvWxCircle.setCompoundDrawables(null, drawable1, null, null); tvWxCircle.setCompoundDrawables(null, drawable1, null, null);
tvWxCircle.setVisibility(View.VISIBLE); tvWxCircle.setVisibility(View.VISIBLE);
Drawable drawable2 = context.getResources().getDrawable(R.drawable.icon_share_bill); Drawable drawable2 = context.getResources().getDrawable(R.drawable.icon_share_code);
drawable2.setBounds(0, 0, DisplayUtil.dip2px(context, drawableSize), DisplayUtil.dip2px(context, drawableSize)); drawable2.setBounds(0, 0, DisplayUtil.dip2px(context, drawableSize), DisplayUtil.dip2px(context, drawableSize));
tvBill.setCompoundDrawables(null, drawable2, null, null); tvBill.setCompoundDrawables(null, drawable2, null, null);
tvBill.setVisibility(View.VISIBLE); tvBill.setVisibility(View.VISIBLE);
...@@ -61,7 +59,7 @@ public class SharePresenter extends CommonPresenter { ...@@ -61,7 +59,7 @@ public class SharePresenter extends CommonPresenter {
shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener); shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener);
} }
UMImage image = new UMImage(getPresenterContext(), R.drawable.logo); UMImage image = new UMImage(getPresenterContext(), R.drawable.share_logo);
UMWeb web = new UMWeb(mUrl); UMWeb web = new UMWeb(mUrl);
web.setTitle(mTitle);//标题 web.setTitle(mTitle);//标题
web.setThumb(image); //缩略图 web.setThumb(image); //缩略图
...@@ -80,7 +78,7 @@ public class SharePresenter extends CommonPresenter { ...@@ -80,7 +78,7 @@ public class SharePresenter extends CommonPresenter {
if (shareAction == null) { if (shareAction == null) {
shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener); shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener);
} }
UMImage image = new UMImage(getPresenterContext(), R.drawable.logo); UMImage image = new UMImage(getPresenterContext(), R.drawable.share_logo);
UMWeb web = new UMWeb(mUrl); UMWeb web = new UMWeb(mUrl);
web.setTitle(mTitle + " " + mDescript);//标题 web.setTitle(mTitle + " " + mDescript);//标题
web.setThumb(image); //缩略图 web.setThumb(image); //缩略图
......
...@@ -63,7 +63,7 @@ public class WebViewPresenter extends CommonPresenter { ...@@ -63,7 +63,7 @@ public class WebViewPresenter extends CommonPresenter {
shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener); shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener);
} }
UMImage image = new UMImage(getPresenterContext(), R.drawable.logo); UMImage image = new UMImage(getPresenterContext(), R.drawable.share_logo);
UMWeb web = new UMWeb(mUrl); UMWeb web = new UMWeb(mUrl);
web.setTitle(mTitle);//标题 web.setTitle(mTitle);//标题
web.setThumb(image); //缩略图 web.setThumb(image); //缩略图
...@@ -82,7 +82,7 @@ public class WebViewPresenter extends CommonPresenter { ...@@ -82,7 +82,7 @@ public class WebViewPresenter extends CommonPresenter {
if (shareAction == null) { if (shareAction == null) {
shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener); shareAction = new ShareAction((Activity) getPresenterContext()).setCallback(shareListener);
} }
UMImage image = new UMImage(getPresenterContext(), R.drawable.logo); UMImage image = new UMImage(getPresenterContext(), R.drawable.share_logo);
UMWeb web = new UMWeb(mUrl); UMWeb web = new UMWeb(mUrl);
web.setTitle(mTitle);//标题 web.setTitle(mTitle);//标题
web.setThumb(image); //缩略图 web.setThumb(image); //缩略图
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="30dp" />
<solid android:color="#FE6E2F" />
</shape>
\ No newline at end of file
...@@ -10,281 +10,306 @@ ...@@ -10,281 +10,306 @@
tools:context=".ShareActivity"> tools:context=".ShareActivity">
<ImageView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content">
android:layout_weight="8"
android:background="@color/white"
android:scaleType="fitXY"
android:src="@drawable/bg_share" />
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_margin="@dimen/dp_10"
android:layout_weight="5"
android:background="@color/white"
app:cardCornerRadius="5dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<TextView <FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_10"
android:text="分享方式"
android:textColor="@color/black"
android:textSize="@dimen/text_18"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content">
android:layout_weight="1"
android:gravity="left|bottom"
android:orientation="horizontal"
android:weightSum="4">
<ImageView
android:layout_width="match_parent"
android:layout_height="195dp"
android:scaleType="fitXY"
android:src="@drawable/bg_share" />
<TextView <TextView
android:id="@+id/tv_weixin" android:id="@+id/tv_ruler"
android:layout_width="0dp" android:layout_width="@dimen/size_80"
android:layout_height="wrap_content" android:layout_height="@dimen/size_25"
android:layout_marginBottom="10dp" android:layout_gravity="right"
android:layout_weight="1" android:layout_marginTop="@dimen/size_10"
android:drawableTop="@drawable/icon_share_wx" android:layout_marginRight="-13dp"
android:background="@drawable/bg_ruler"
android:gravity="center" android:gravity="center"
android:text="微信" /> android:text="规则说明"
android:textColor="@color/white"
android:textSize="@dimen/sp_12" />
<TextView </FrameLayout>
android:id="@+id/tv_weixin_circle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:drawableTop="@drawable/icon_share_cir"
android:gravity="center"
android:text="朋友圈" />
<TextView
android:id="@+id/tv_bill"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:drawableTop="@drawable/icon_share_qq"
android:gravity="center"
android:text="邀请码" />
<TextView
android:id="@+id/tv_more"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:drawableTop="@drawable/icon_share_bill"
android:gravity="center"
android:text="更多" />
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView> <android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10"
android:layout_marginBottom="@dimen/dp_10"
android:layout_weight="4"
android:background="@color/white"
app:cardCornerRadius="5dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="我的推广"
android:textColor="#000000"
android:textSize="@dimen/text_15" />
<TextView
android:id="@+id/tv_more_detail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="查看详情>" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_margin="@dimen/dp_10"
android:layout_marginBottom="@dimen/dp_10" android:background="@color/white"
android:orientation="horizontal" app:cardCornerRadius="5dp">
android:weightSum="3">
<LinearLayout <LinearLayout
android:id="@+id/ll_comein" android:layout_width="match_parent"
android:layout_width="0dp" android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/tv_amount"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0元" /> android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_10"
android:text="分享方式"
android:textColor="@color/black"
android:textSize="@dimen/text_18"
android:textStyle="bold" />
<TextView <LinearLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10" android:layout_marginTop="@dimen/size_10"
android:text="累计收益" android:orientation="horizontal">
android:textColor="@color/gray_707070" />
<TextView
android:id="@+id/tv_weixin"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:drawableTop="@drawable/icon_share_weixin"
android:gravity="center"
android:text="微信" />
<TextView
android:id="@+id/tv_weixin_circle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:drawableTop="@drawable/icon_share_wx_circle"
android:gravity="center"
android:text="朋友圈" />
<TextView
android:id="@+id/tv_bill"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:drawableTop="@drawable/icon_share_code"
android:gravity="center"
android:text="邀请码" />
<TextView
android:id="@+id/tv_more"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:drawableTop="@drawable/icon_share_more"
android:gravity="center"
android:text="更多" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<View
android:layout_width="0.1dp" </android.support.v7.widget.CardView>
android:layout_height="match_parent"
android:layout_marginTop="@dimen/size_2" <android.support.v7.widget.CardView
android:layout_marginBottom="@dimen/size_2" android:layout_width="match_parent"
android:background="@color/tv_gr999999" /> android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10"
android:layout_marginBottom="@dimen/dp_10"
android:background="@color/white"
app:cardCornerRadius="5dp">
<LinearLayout <LinearLayout
android:id="@+id/ll_invite" android:layout_width="match_parent"
android:layout_width="0dp" android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical"> android:orientation="vertical">
<TextView <RelativeLayout
android:id="@+id/tv_person_inval" android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0人" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_10" android:layout_marginTop="@dimen/dp_10"
android:text="已邀请" android:layout_marginRight="@dimen/dp_10">
android:textColor="@color/gray_707070" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="我的推广"
android:textColor="#000000"
android:textSize="@dimen/text_15" />
<TextView
android:id="@+id/tv_more_detail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="查看详情>" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_20"
android:layout_marginBottom="@dimen/dp_10"
android:orientation="horizontal"
android:weightSum="3">
<LinearLayout
android:id="@+id/ll_comein"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_amount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0元" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10"
android:text="累计收益"
android:textColor="@color/gray_707070" />
</LinearLayout>
<View
android:layout_width="0.1dp"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/size_2"
android:layout_marginBottom="@dimen/size_2"
android:background="@color/tv_gr999999" />
<LinearLayout
android:id="@+id/ll_invite"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_person_inval"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0人" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10"
android:text="已邀请"
android:textColor="@color/gray_707070" />
</LinearLayout>
<View
android:layout_width="0.1dp"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/size_2"
android:layout_marginBottom="@dimen/size_2"
android:background="@color/tv_gr999999" />
<LinearLayout
android:id="@+id/ll_activation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_person_use"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0人" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10"
android:text="已激活"
android:textColor="@color/gray_707070" />
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<View </android.support.v7.widget.CardView>
android:layout_width="0.1dp"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/size_2"
android:layout_marginBottom="@dimen/size_2"
android:background="@color/tv_gr999999" />
<LinearLayout
android:id="@+id/ll_activation" <android.support.v7.widget.CardView
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginLeft="@dimen/dp_10"
android:gravity="center" android:layout_marginRight="@dimen/dp_10"
android:orientation="vertical"> android:layout_marginBottom="@dimen/dp_10"
android:background="@color/white"
app:cardCornerRadius="5dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView <TextView
android:id="@+id/tv_person_use"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="0人" /> android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_10"
android:text="我的推广人"
android:textColor="#000000"
android:textSize="@dimen/text_15"
android:textStyle="bold" />
<TextView <TextView
android:id="@+id/tv_parent_phone"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_10" android:layout_alignParentRight="true"
android:text="已激活" android:layout_centerVertical="true"
android:textColor="@color/gray_707070" /> android:layout_marginRight="@dimen/dp_10"
android:text="12345678910"
</LinearLayout> android:textColor="@color/tv_gr999999"
android:textSize="@dimen/sp_12" />
</LinearLayout>
<com.base.utils.ui.image.round.RoundImageView
</RelativeLayout> android:id="@+id/img_parent"
android:layout_width="@dimen/size_30"
android:layout_height="@dimen/size_30"
android:layout_centerVertical="true"
android:layout_marginTop="@dimen/size_10"
android:layout_marginRight="@dimen/size_5"
android:layout_marginBottom="@dimen/size_10"
android:layout_toLeftOf="@id/tv_parent_phone"
android:src="@drawable/icon_share_cir" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</android.support.v7.widget.CardView> </LinearLayout>
</ScrollView>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10"
android:layout_marginBottom="@dimen/dp_10"
android:layout_weight="2"
android:background="@color/white"
app:cardCornerRadius="5dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_10"
android:text="我的推广人"
android:textColor="#000000"
android:textSize="@dimen/text_15"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_parent_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/dp_10"
android:text="12345678910"
android:textColor="@color/tv_gr999999"
android:textSize="@dimen/sp_12" />
<com.base.utils.ui.image.round.RoundImageView
android:id="@+id/img_parent"
android:layout_width="@dimen/size_30"
android:layout_height="@dimen/size_30"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/size_5"
android:layout_toLeftOf="@id/tv_parent_phone"
android:src="@drawable/icon_share_cir" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout> </LinearLayout>
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<string-array name="popularize_list"> <string-array name="popularize_list">
<item>收益记录</item> <item>收益记录</item>
<item>已邀请</item> <item>待激活</item>
<item>已激活</item> <item>已激活</item>
</string-array> </string-array>
</resources> </resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment