我的修改完成
@ -23,6 +23,7 @@ import com.yunbao.common.utils.SpUtil;
|
|||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -133,6 +134,7 @@ public class CommonAppConfig {
|
|||||||
private boolean mLaunched;//App是否启动了
|
private boolean mLaunched;//App是否启动了
|
||||||
private String mJPushAppKey;//极光推送的AppKey
|
private String mJPushAppKey;//极光推送的AppKey
|
||||||
private List<UserItemBean> mUserItemList;//个人中心功能列表
|
private List<UserItemBean> mUserItemList;//个人中心功能列表
|
||||||
|
private List<List<UserItemBean>> mYolaUserItemList;//个人中心功能列表
|
||||||
private SparseArray<FansMedalBean> mAnchorFansMedalMap;
|
private SparseArray<FansMedalBean> mAnchorFansMedalMap;
|
||||||
private String mGiftListJson;
|
private String mGiftListJson;
|
||||||
private String mWrapListJson;
|
private String mWrapListJson;
|
||||||
@ -550,6 +552,42 @@ public class CommonAppConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 个人中心功能列表
|
||||||
|
*/
|
||||||
|
public List<List<UserItemBean>> geYolatUserItemList() {
|
||||||
|
if (mYolaUserItemList == null || mYolaUserItemList.size() == 0) {
|
||||||
|
String userBeanJson = SpUtil.getInstance().getStringValue(SpUtil.USER_INFO);
|
||||||
|
if (!TextUtils.isEmpty(userBeanJson)) {
|
||||||
|
JSONObject obj = JSON.parseObject(userBeanJson);
|
||||||
|
if (obj != null) {
|
||||||
|
setYolatUserItemList(obj.getString("yola_list"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return mYolaUserItemList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYolatUserItemList(String yola_list) {
|
||||||
|
if (yola_list == null || yola_list.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
mYolaUserItemList.clear();
|
||||||
|
JSONObject obj = JSON.parseObject(yola_list);
|
||||||
|
|
||||||
|
if (obj != null) {
|
||||||
|
List<UserItemBean> list1 = JSON.parseArray(obj.getString("user_rights"), UserItemBean.class);
|
||||||
|
List<UserItemBean> list2 = JSON.parseArray(obj.getString("creation_center"), UserItemBean.class);
|
||||||
|
List<UserItemBean> list3 = JSON.parseArray(obj.getString("other_functions"), UserItemBean.class);
|
||||||
|
|
||||||
|
mYolaUserItemList.add(list1);
|
||||||
|
mYolaUserItemList.add(list2);
|
||||||
|
mYolaUserItemList.add(list3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void setUserItemList(String listString) {
|
public void setUserItemList(String listString) {
|
||||||
UserItemBean[][] arr = JSON.parseObject(listString, UserItemBean[][].class);
|
UserItemBean[][] arr = JSON.parseObject(listString, UserItemBean[][].class);
|
||||||
if (arr != null && arr.length > 0) {
|
if (arr != null && arr.length > 0) {
|
||||||
|
@ -5,7 +5,6 @@ import android.content.ClipboardManager;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.Outline;
|
import android.graphics.Outline;
|
||||||
import android.graphics.drawable.Drawable;
|
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -38,12 +37,10 @@ import com.yunbao.common.activity.WebViewActivity;
|
|||||||
import com.yunbao.common.bean.GoogleBean;
|
import com.yunbao.common.bean.GoogleBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.bean.UserItemBean;
|
import com.yunbao.common.bean.UserItemBean;
|
||||||
import com.yunbao.common.event.CompleteInformationEvent;
|
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
import com.yunbao.common.manager.APKManager;
|
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.RouteUtil;
|
import com.yunbao.common.utils.RouteUtil;
|
||||||
import com.yunbao.common.utils.SVGAViewUtils;
|
import com.yunbao.common.utils.SVGAViewUtils;
|
||||||
@ -56,7 +53,6 @@ import com.yunbao.live.activity.LiveRecordActivity;
|
|||||||
import com.yunbao.live.activity.RoomManageActivity;
|
import com.yunbao.live.activity.RoomManageActivity;
|
||||||
import com.yunbao.live.activity.WebViewActivityMedal;
|
import com.yunbao.live.activity.WebViewActivityMedal;
|
||||||
import com.yunbao.live.bean.SlideBean;
|
import com.yunbao.live.bean.SlideBean;
|
||||||
import com.yunbao.live.utils.LiveTextRender;
|
|
||||||
import com.yunbao.live.views.CustomMyViewHolder;
|
import com.yunbao.live.views.CustomMyViewHolder;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
import com.yunbao.main.activity.EditProfileActivity;
|
import com.yunbao.main.activity.EditProfileActivity;
|
||||||
@ -73,8 +69,6 @@ import com.yunbao.main.adapter.MainMeAdapter;
|
|||||||
import com.yunbao.main.http.MainHttpConsts;
|
import com.yunbao.main.http.MainHttpConsts;
|
||||||
import com.yunbao.main.http.MainHttpUtil;
|
import com.yunbao.main.http.MainHttpUtil;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -93,21 +87,24 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
|
|
||||||
private ImageView mAvatar;
|
private ImageView mAvatar;
|
||||||
private TextView mName, tv_level;
|
private TextView mName, tv_level;
|
||||||
private ImageView mSex;
|
private ImageView mLevel;
|
||||||
private ImageView mLevelAnchor;
|
private ImageView img_setting;
|
||||||
private ImageView mLevel, img_setting;
|
|
||||||
private TextView mID;
|
private TextView mID;
|
||||||
private TextView mFollow;
|
|
||||||
private TextView mFans;
|
|
||||||
private boolean mPaused;
|
private boolean mPaused;
|
||||||
private RecyclerView mRecyclerView;
|
private RecyclerView userRightRecyclerView;
|
||||||
private MainMeAdapter mAdapter;
|
private RecyclerView creationCenterRecyclerView;
|
||||||
|
private RecyclerView otherFunctionsRecyclerView;
|
||||||
|
|
||||||
|
private MainMeAdapter mUserRightAdapter;
|
||||||
|
private MainMeAdapter mCreationCenterAdapter;
|
||||||
|
private MainMeAdapter mOtherFunctionsAdapter;
|
||||||
|
|
||||||
private TextView signature;
|
private TextView signature;
|
||||||
private TextView coin, gold, star_coin;//金豆,钻石,星币
|
private TextView coin, gold, star_coin;//金豆,钻石,星币
|
||||||
private TextView btnCopy;
|
private TextView btnCopy;
|
||||||
private SVGAImageView gift_svga;
|
private SVGAImageView gift_svga;
|
||||||
private View v_noble;
|
private View v_noble;
|
||||||
private FrameLayout lt_noble;
|
private FrameLayout vipBgView;
|
||||||
// private LinearLayout btnUserNoble;
|
// private LinearLayout btnUserNoble;
|
||||||
private ImageView user_noble_ico, good_nub_ico, img_lv_pic;
|
private ImageView user_noble_ico, good_nub_ico, img_lv_pic;
|
||||||
private TextView user_noble_text, user_noble_time, tv_setting;
|
private TextView user_noble_text, user_noble_time, tv_setting;
|
||||||
@ -115,7 +112,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
private boolean firstInto = true;
|
private boolean firstInto = true;
|
||||||
private Banner banner_me;
|
private Banner banner_me;
|
||||||
private LinearLayout lt_advertisement;
|
private LinearLayout lt_advertisement;
|
||||||
private View redPoint;
|
//private View redPoint;
|
||||||
|
|
||||||
public MainMeViewHolder(Context context, ViewGroup parentView) {
|
public MainMeViewHolder(Context context, ViewGroup parentView) {
|
||||||
super(context, parentView);
|
super(context, parentView);
|
||||||
@ -123,14 +120,14 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
return R.layout.view_main_me;
|
return R.layout.view_main_me2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("WrongViewCast")
|
@SuppressLint("WrongViewCast")
|
||||||
@Override
|
@Override
|
||||||
public void init() {
|
public void init() {
|
||||||
mAvatar = (ImageView) findViewById(R.id.edit_me_avatar);
|
mAvatar = (ImageView) findViewById(R.id.edit_me_avatar);
|
||||||
redPoint = findViewById(R.id.red_point);
|
//redPoint = findViewById(R.id.red_point);
|
||||||
ViewClicksAntiShake.clicksAntiShake(mAvatar, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(mAvatar, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
@ -152,8 +149,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
user_noble_ico = (ImageView) findViewById(R.id.user_noble_ico);
|
user_noble_ico = (ImageView) findViewById(R.id.user_noble_ico);
|
||||||
mLevelAnchor = (ImageView) findViewById(R.id.level_anchor);
|
// mLevel = (ImageView) findViewById(R.id.level);
|
||||||
mLevel = (ImageView) findViewById(R.id.level);
|
|
||||||
tv_level = (TextView) findViewById(R.id.tv_level);
|
tv_level = (TextView) findViewById(R.id.tv_level);
|
||||||
good_nub_ico = (ImageView) findViewById(R.id.good_nub_ico);
|
good_nub_ico = (ImageView) findViewById(R.id.good_nub_ico);
|
||||||
mID = (TextView) findViewById(R.id.id_val);
|
mID = (TextView) findViewById(R.id.id_val);
|
||||||
@ -164,23 +160,22 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
btnCopy = (TextView) findViewById(R.id.btn_copy);
|
btnCopy = (TextView) findViewById(R.id.btn_copy);
|
||||||
user_noble_text = (TextView) findViewById(R.id.user_noble_text);
|
user_noble_text = (TextView) findViewById(R.id.user_noble_text);
|
||||||
img_setting = (ImageView) findViewById(R.id.img_setting);
|
img_setting = (ImageView) findViewById(R.id.img_setting);
|
||||||
v_noble = (View) findViewById(R.id.v_noble);
|
|
||||||
lt_noble = (FrameLayout) findViewById(R.id.lt_noble);
|
|
||||||
user_noble_time = (TextView) findViewById(R.id.user_noble_time);
|
user_noble_time = (TextView) findViewById(R.id.user_noble_time);
|
||||||
banner_me = (Banner) findViewById(R.id.banner_me);
|
banner_me = (Banner) findViewById(R.id.banner_me);
|
||||||
lt_advertisement = (LinearLayout) findViewById(R.id.lt_advertisement);
|
lt_advertisement = (LinearLayout) findViewById(R.id.lt_advertisement);
|
||||||
img_lv_pic = (ImageView) findViewById(R.id.img_lv_pic);
|
// img_lv_pic = (ImageView) findViewById(R.id.img_lv_pic);
|
||||||
tv_setting = (TextView) findViewById(R.id.tv_setting);
|
// tv_setting = (TextView) findViewById(R.id.tv_setting);
|
||||||
findViewById(R.id.lt_star_coin).setOnClickListener(this);
|
findViewById(R.id.goldCoinImg).setOnClickListener(this);
|
||||||
findViewById(R.id.btn_coin).setOnClickListener(this);
|
findViewById(R.id.diamondImg).setOnClickListener(this);
|
||||||
findViewById(R.id.btn_gold).setOnClickListener(this);
|
findViewById(R.id.goldenBeanImg).setOnClickListener(this);
|
||||||
|
|
||||||
findViewById(R.id.rt_kefu).setOnClickListener(this);
|
// findViewById(R.id.rt_kefu).setOnClickListener(this);
|
||||||
findViewById(R.id.rt_setting).setOnClickListener(this);
|
findViewById(R.id.img_setting).setOnClickListener(this);
|
||||||
findViewById(R.id.lt_noble).setOnClickListener(this);
|
findViewById(R.id.vipBgView).setOnClickListener(this);
|
||||||
findViewById(R.id.lt_name).setOnClickListener(this);
|
findViewById(R.id.name).setOnClickListener(this);
|
||||||
|
findViewById(R.id.btn_edit).setOnClickListener(this);
|
||||||
findViewById(R.id.signature).setOnClickListener(this);
|
findViewById(R.id.signature).setOnClickListener(this);
|
||||||
findViewById(R.id.lt_guard).setOnClickListener(this);
|
findViewById(R.id.gudBgView).setOnClickListener(this);
|
||||||
|
|
||||||
btnCopy.setOnClickListener(new View.OnClickListener() {
|
btnCopy.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -190,22 +185,38 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
Toast.makeText(mContext, "複製成功", Toast.LENGTH_SHORT).show();
|
Toast.makeText(mContext, "複製成功", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
|
userRightRecyclerView = (RecyclerView) findViewById(R.id.userRightRecyclerView);
|
||||||
mRecyclerView.setHasFixedSize(true);
|
userRightRecyclerView.setHasFixedSize(true);
|
||||||
mRecyclerView.setLayoutManager(new GridLayoutManager(mContext, 4, GridLayoutManager.VERTICAL, false));
|
userRightRecyclerView.setLayoutManager(new GridLayoutManager(mContext, 4, GridLayoutManager.VERTICAL, false));
|
||||||
|
|
||||||
|
|
||||||
|
creationCenterRecyclerView= (RecyclerView) findViewById(R.id.creationCenterRecyclerView);
|
||||||
|
creationCenterRecyclerView.setHasFixedSize(true);
|
||||||
|
creationCenterRecyclerView.setLayoutManager(new GridLayoutManager(mContext, 4, GridLayoutManager.VERTICAL, false));
|
||||||
|
|
||||||
|
otherFunctionsRecyclerView= (RecyclerView) findViewById(R.id.otherFunctionsRecyclerView);
|
||||||
|
otherFunctionsRecyclerView.setHasFixedSize(true);
|
||||||
|
otherFunctionsRecyclerView.setLayoutManager(new GridLayoutManager(mContext, 4, GridLayoutManager.VERTICAL, false));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
banner_me.setOutlineProvider(new ViewOutlineProvider() {
|
banner_me.setOutlineProvider(new ViewOutlineProvider() {
|
||||||
@Override
|
@Override
|
||||||
public void getOutline(View view, Outline outline) {
|
public void getOutline(View view, Outline outline) {
|
||||||
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10);
|
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
redPoint.setVisibility(APKManager.get().getApkVerNew() ? View.GONE : View.VISIBLE);
|
|
||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.complete_information), new ViewClicksAntiShake.ViewClicksCallBack() {
|
|
||||||
@Override
|
|
||||||
public void onViewClicks() {
|
|
||||||
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
//redPoint.setVisibility(APKManager.get().getApkVerNew() ? View.GONE : View.VISIBLE);
|
||||||
}
|
// ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.complete_information), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
});
|
// @Override
|
||||||
|
// public void onViewClicks() {
|
||||||
|
// mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -288,7 +299,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
private CommonCallback<UserBean> mCallback = new CommonCallback<UserBean>() {
|
private CommonCallback<UserBean> mCallback = new CommonCallback<UserBean>() {
|
||||||
@Override
|
@Override
|
||||||
public void callback(UserBean bean) {
|
public void callback(UserBean bean) {
|
||||||
List<UserItemBean> list = CommonAppConfig.getInstance().getUserItemList();
|
List<List<UserItemBean>> list = CommonAppConfig.getInstance().geYolatUserItemList();
|
||||||
if (bean != null) {
|
if (bean != null) {
|
||||||
showData(bean, list);
|
showData(bean, list);
|
||||||
}
|
}
|
||||||
@ -297,7 +308,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
|
|
||||||
private List<SlideBean> mBannerListNew = new ArrayList<>();
|
private List<SlideBean> mBannerListNew = new ArrayList<>();
|
||||||
|
|
||||||
private void showData(UserBean u, List<UserItemBean> list) {
|
private void showData(UserBean u, List<List<UserItemBean>> list) {
|
||||||
mBannerList.clear();
|
mBannerList.clear();
|
||||||
mBannerListNew.clear();
|
mBannerListNew.clear();
|
||||||
if (!StringUtil.isEmpty(u.getSlide())) {
|
if (!StringUtil.isEmpty(u.getSlide())) {
|
||||||
@ -364,7 +375,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
good_nub_ico.setImageResource(R.mipmap.usercard_good_nub);
|
good_nub_ico.setImageResource(R.mipmap.usercard_good_nub);
|
||||||
|
|
||||||
|
|
||||||
ImgLoader.display(mContext, R.mipmap.icon_zhubolv, img_lv_pic);
|
// ImgLoader.display(mContext, R.mipmap.icon_zhubolv, img_lv_pic);
|
||||||
//主播等级
|
//主播等级
|
||||||
tv_level.setOnClickListener(new View.OnClickListener() {
|
tv_level.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -378,17 +389,17 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
Constants.isAnchor = false;
|
Constants.isAnchor = false;
|
||||||
new LiveTextRender().getLevelImage(mContext, u.getLevel(), new ImgLoader.DrawableCallback() {
|
// new LiveTextRender().getLevelImage(mContext, u.getLevel(), new ImgLoader.DrawableCallback() {
|
||||||
@Override
|
// @Override
|
||||||
public void onLoadSuccess(Drawable drawable) {
|
// public void onLoadSuccess(Drawable drawable) {
|
||||||
ImgLoader.display2(mContext, drawable, mLevel);
|
// ImgLoader.display2(mContext, drawable, mLevel);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Override
|
// @Override
|
||||||
public void onLoadFailed() {
|
// public void onLoadFailed() {
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
//用户等级
|
//用户等级
|
||||||
tv_level.setOnClickListener(new View.OnClickListener() {
|
tv_level.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -409,9 +420,11 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
good_nub_ico.setVisibility(View.GONE);
|
good_nub_ico.setVisibility(View.GONE);
|
||||||
mID.setText(u.getLiangNameTip());
|
mID.setText(u.getLiangNameTip());
|
||||||
}
|
}
|
||||||
if (list != null && list.size() > 0) {
|
if (list != null && list.size() > 0 ) {
|
||||||
|
|
||||||
|
List<UserItemBean> usList= list.get(0);
|
||||||
List<UserItemBean> listNow = new ArrayList<>();
|
List<UserItemBean> listNow = new ArrayList<>();
|
||||||
for (UserItemBean userItemBean : list) {
|
for (UserItemBean userItemBean : usList) {
|
||||||
if (userItemBean.getId() != 21 && userItemBean.getId() != 13) {
|
if (userItemBean.getId() != 21 && userItemBean.getId() != 13) {
|
||||||
listNow.add(userItemBean);
|
listNow.add(userItemBean);
|
||||||
} else if (userItemBean.getId() == 21) {
|
} else if (userItemBean.getId() == 21) {
|
||||||
@ -420,30 +433,69 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
beanStetting = userItemBean;
|
beanStetting = userItemBean;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mAdapter == null) {
|
if (mUserRightAdapter == null) {
|
||||||
mAdapter = new MainMeAdapter(mContext, listNow);
|
mUserRightAdapter = new MainMeAdapter(mContext, listNow);
|
||||||
mAdapter.setOnItemClickListener(this);
|
mUserRightAdapter.setOnItemClickListener(this);
|
||||||
mRecyclerView.setAdapter(mAdapter);
|
userRightRecyclerView.setAdapter(mUserRightAdapter);
|
||||||
} else {
|
} else {
|
||||||
mAdapter.setList(listNow);
|
mUserRightAdapter.setList(listNow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<UserItemBean> createList= list.get(1);
|
||||||
|
List<UserItemBean> listNow1 = new ArrayList<>();
|
||||||
|
for (UserItemBean userItemBean : createList) {
|
||||||
|
if (userItemBean.getId() != 21 && userItemBean.getId() != 13) {
|
||||||
|
listNow1.add(userItemBean);
|
||||||
|
} else if (userItemBean.getId() == 21) {
|
||||||
|
beanKefu = userItemBean;
|
||||||
|
} else if (userItemBean.getId() == 13) {
|
||||||
|
beanStetting = userItemBean;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (mCreationCenterAdapter == null) {
|
||||||
|
mCreationCenterAdapter = new MainMeAdapter(mContext, listNow1);
|
||||||
|
mCreationCenterAdapter.setOnItemClickListener(this);
|
||||||
|
creationCenterRecyclerView.setAdapter(mCreationCenterAdapter);
|
||||||
|
} else {
|
||||||
|
mCreationCenterAdapter.setList(listNow1);
|
||||||
|
}
|
||||||
|
|
||||||
|
List<UserItemBean> otherList= list.get(2);
|
||||||
|
List<UserItemBean> listNow2 = new ArrayList<>();
|
||||||
|
for (UserItemBean userItemBean : createList) {
|
||||||
|
if (userItemBean.getId() != 21 && userItemBean.getId() != 13) {
|
||||||
|
listNow2.add(userItemBean);
|
||||||
|
} else if (userItemBean.getId() == 21) {
|
||||||
|
beanKefu = userItemBean;
|
||||||
|
} else if (userItemBean.getId() == 13) {
|
||||||
|
beanStetting = userItemBean;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (mOtherFunctionsAdapter == null) {
|
||||||
|
mOtherFunctionsAdapter = new MainMeAdapter(mContext, listNow2);
|
||||||
|
mOtherFunctionsAdapter.setOnItemClickListener(this);
|
||||||
|
otherFunctionsRecyclerView.setAdapter(mOtherFunctionsAdapter);
|
||||||
|
} else {
|
||||||
|
mOtherFunctionsAdapter.setList(listNow2);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (beanKefu != null) {
|
if (beanKefu != null) {
|
||||||
}
|
}
|
||||||
if (beanStetting != null) {
|
// if (beanStetting != null) {
|
||||||
ImgLoader.display(mContext, beanStetting.getThumb(), img_setting);
|
// ImgLoader.display(mContext, beanStetting.getThumb(), img_setting);
|
||||||
tv_setting.setText(beanStetting.getName());
|
// tv_setting.setText(beanStetting.getName());
|
||||||
}
|
// }
|
||||||
Constants.myUid = u.getGoodnum();
|
Constants.myUid = u.getGoodnum();
|
||||||
Constants.myAvatar = u.getAvatar();
|
Constants.myAvatar = u.getAvatar();
|
||||||
if (u.getUserInfoComplete() == 1) {
|
// if (u.getUserInfoComplete() == 1) {
|
||||||
findViewById(R.id.complete_information_radius).setVisibility(View.INVISIBLE);
|
// findViewById(R.id.complete_information_radius).setVisibility(View.INVISIBLE);
|
||||||
findViewById(R.id.complete_information).setVisibility(View.INVISIBLE);
|
// findViewById(R.id.complete_information).setVisibility(View.INVISIBLE);
|
||||||
} else {
|
// } else {
|
||||||
findViewById(R.id.complete_information_radius).setVisibility(View.VISIBLE);
|
// findViewById(R.id.complete_information_radius).setVisibility(View.VISIBLE);
|
||||||
findViewById(R.id.complete_information).setVisibility(View.VISIBLE);
|
// findViewById(R.id.complete_information).setVisibility(View.VISIBLE);
|
||||||
}
|
// }
|
||||||
EventBus.getDefault().post(new CompleteInformationEvent().setCompleteInformation(findViewById(R.id.complete_information).getVisibility() == View.VISIBLE));
|
// EventBus.getDefault().post(new CompleteInformationEvent().setCompleteInformation(findViewById(R.id.complete_information).getVisibility() == View.VISIBLE));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -525,36 +577,36 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|
||||||
int i = v.getId();
|
int i = v.getId();
|
||||||
if (i == R.id.lt_name) {
|
if (i == R.id.name ||i==R.id.btn_edit) {
|
||||||
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
||||||
} else if (i == R.id.signature) {
|
} else if (i == R.id.signature) {
|
||||||
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
||||||
} else if (i == R.id.lt_star_coin) {
|
} else if (i == R.id.goldCoinImg) {
|
||||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
map_ekv.put("from", "xb");
|
map_ekv.put("from", "xb");
|
||||||
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
||||||
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 1));
|
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 1));
|
||||||
} else if (i == R.id.btn_coin) {
|
} else if (i == R.id.diamondImg) {
|
||||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
map_ekv.put("from", "zs");
|
map_ekv.put("from", "zs");
|
||||||
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
||||||
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 0));
|
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 0));
|
||||||
} else if (i == R.id.btn_gold) {
|
} else if (i == R.id.goldenBeanImg) {
|
||||||
MobclickAgent.onEvent(mContext, "my_receive", "充值旁边领取金豆的按钮");
|
MobclickAgent.onEvent(mContext, "my_receive", "充值旁边领取金豆的按钮");
|
||||||
// mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 2));
|
// mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 2));
|
||||||
String url = CommonAppConfig.HOST + "/h5/task/index.html?";
|
String url = CommonAppConfig.HOST + "/h5/task/index.html?";
|
||||||
RewardActivity.forward(mContext, url);
|
RewardActivity.forward(mContext, url);
|
||||||
} else if (i == R.id.rt_kefu) {
|
} else if (i == R.id.rt_kefu) {
|
||||||
WebViewActivity.forward(mContext, beanKefu.getHref(), false);
|
WebViewActivity.forward(mContext, beanKefu.getHref(), false);
|
||||||
} else if (i == R.id.rt_setting) {
|
} else if (i == R.id.img_setting) {
|
||||||
forwardSetting();
|
forwardSetting();
|
||||||
} else if (i == R.id.lt_noble) {
|
} else if (i == R.id.vipBgView) {
|
||||||
MobclickAgent.onEvent(mContext, "my_noble", "个人中心点贵族");
|
MobclickAgent.onEvent(mContext, "my_noble", "个人中心点贵族");
|
||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
||||||
String url = CommonAppConfig.HOST + "/h5/Noble/index.html?nickname=" + u.getUserNiceName() + "&usernobId=" + u.getNoble_id() + "&token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
String url = CommonAppConfig.HOST + "/h5/Noble/index.html?nickname=" + u.getUserNiceName() + "&usernobId=" + u.getNoble_id() + "&token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
||||||
ZhuangBanActivity.forward(mContext, url, false);
|
ZhuangBanActivity.forward(mContext, url, false);
|
||||||
} else if (i == R.id.lt_guard) {
|
} else if (i == R.id.gudBgView) {
|
||||||
MobclickAgent.onEvent(mContext, "my_guard_btn", "我的-守护点击次数及人数");
|
MobclickAgent.onEvent(mContext, "my_guard_btn", "我的-守护点击次数及人数");
|
||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
||||||
|
571
main/src/main/res/layout/view_main_me2.xml
Normal file
@ -0,0 +1,571 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/gray2"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingBottom="50dp">
|
||||||
|
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:focusable="true"
|
||||||
|
android:focusableInTouchMode="true">
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/meTitleTv"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="34dp"
|
||||||
|
android:text="@string/main_me"
|
||||||
|
android:textColor="@color/color_111111"
|
||||||
|
android:textSize="16sp"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/img_setting"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:padding="6dp"
|
||||||
|
android:src="@mipmap/ic_yola_setting"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/meTitleTv"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/meTitleTv" />
|
||||||
|
|
||||||
|
|
||||||
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
|
android:id="@+id/edit_me_avatar"
|
||||||
|
android:layout_width="66dp"
|
||||||
|
android:layout_height="66dp"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="24dp"
|
||||||
|
android:layout_marginTop="24dp"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/meTitleTv"
|
||||||
|
app:riv_border_color="#FFFFFF"
|
||||||
|
app:riv_border_width="2dp"
|
||||||
|
app:riv_oval="true"
|
||||||
|
tools:src="@mipmap/icon_avatar_male" />
|
||||||
|
|
||||||
|
<com.opensource.svgaplayer.SVGAImageView
|
||||||
|
android:id="@+id/gift_svga"
|
||||||
|
android:layout_width="78dp"
|
||||||
|
android:layout_height="78dp"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
app:autoPlay="true"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/edit_me_avatar"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/edit_me_avatar"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/edit_me_avatar"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/edit_me_avatar" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/name"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="18dp"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:textColor="@color/color_111111"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/edit_me_avatar"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/edit_me_avatar"
|
||||||
|
tools:text="用戶名稱" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/btn_edit"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:src="@mipmap/ic_yola_edit"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/name"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/name" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/good_nub_ico"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:src="@mipmap/good_nub"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/name"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/name"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/id_val"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:background="@drawable/bg_white_radius17"
|
||||||
|
android:paddingStart="6dp"
|
||||||
|
android:paddingTop="1dp"
|
||||||
|
android:paddingEnd="6dp"
|
||||||
|
android:paddingBottom="1dp"
|
||||||
|
android:textColor="@color/color_8a8a8a"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/good_nub_ico"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/name"
|
||||||
|
tools:text="ID: 12345" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_level"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:background="@drawable/bg_white_radius17"
|
||||||
|
android:paddingStart="6dp"
|
||||||
|
android:paddingTop="1dp"
|
||||||
|
android:paddingEnd="6dp"
|
||||||
|
android:paddingBottom="1dp"
|
||||||
|
android:textColor="@color/color_8a8a8a"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/id_val"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/name"
|
||||||
|
tools:text="LV 38" />
|
||||||
|
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:padding="6dp"
|
||||||
|
android:src="@mipmap/ic_yola_right_arrow"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/edit_me_avatar"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/edit_me_avatar" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/bgView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="78dp"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="18dp"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:background="@drawable/bg_me_data"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/edit_me_avatar" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/line"
|
||||||
|
android:layout_width="1dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:background="#FFF2F2F2"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/bgView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
|
app:layout_constraintHorizontal_bias="0.8"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/bgView" />
|
||||||
|
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/diamondImg"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:padding="6dp"
|
||||||
|
android:src="@mipmap/ic_yola_diamond"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/goldCoinImg"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/bgView" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/goldCoinImg"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="6dp"
|
||||||
|
android:src="@mipmap/ic_yola_gold_coin"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/diamondImg"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/goldenBeanImg"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/diamondImg"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/diamondImg" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/goldenBeanImg"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="6dp"
|
||||||
|
android:src="@mipmap/ic_yola_golden_bean"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/diamondImg"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/line"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/goldCoinImg"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/diamondImg" />
|
||||||
|
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/rechargeImg"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="6dp"
|
||||||
|
android:src="@mipmap/ic_yola_recharge"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/diamondImg"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/line"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/diamondImg" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/coin"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textColor="@color/textColor"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/diamondImg"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/diamondImg"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/diamondImg"
|
||||||
|
tools:text="2880" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/star_coin"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textColor="@color/textColor"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/goldCoinImg"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/goldCoinImg"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/goldCoinImg"
|
||||||
|
tools:text="2880" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/gold"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textColor="@color/textColor"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/goldenBeanImg"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/goldenBeanImg"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/goldenBeanImg"
|
||||||
|
tools:text="2880" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/rechargeTv"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/charge"
|
||||||
|
android:textColor="#FFF1AA00"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/rechargeImg"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/rechargeImg"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/rechargeImg" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/vipBgView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="72dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:background="@drawable/bg_me_data"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/bgView"
|
||||||
|
app:layout_constraintWidth_percent="0.448" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/user_noble_ico"
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:src="@mipmap/ic_yola_guard"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/vipBgView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/vipBgView"
|
||||||
|
app:layout_constraintHorizontal_bias="0.12"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/vipBgView"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/vipBgView" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/user_noble_text"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="start"
|
||||||
|
android:paddingStart="9dp"
|
||||||
|
android:paddingEnd="2dp"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/vipBgView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/vipBgView"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/user_noble_ico"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/vipBgView"
|
||||||
|
app:layout_constraintVertical_bias="0.32"
|
||||||
|
tools:text="貴族中心" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/user_noble_time"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingStart="9dp"
|
||||||
|
android:paddingEnd="2dp"
|
||||||
|
android:text="@string/open_noble_text"
|
||||||
|
android:textColor="#777777"
|
||||||
|
android:textSize="10sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/vipBgView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/vipBgView"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/user_noble_ico"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/user_noble_text"
|
||||||
|
app:layout_constraintVertical_bias="0.32" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/gudBgView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="72dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:background="@drawable/bg_me_data"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/bgView"
|
||||||
|
app:layout_constraintWidth_percent="0.448" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/user_guard_ico"
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:src="@mipmap/ic_yola_vip_center"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/gudBgView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/gudBgView"
|
||||||
|
app:layout_constraintHorizontal_bias="0.12"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/gudBgView"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/gudBgView" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/user_guard_text"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="start"
|
||||||
|
android:paddingStart="9dp"
|
||||||
|
android:paddingEnd="2dp"
|
||||||
|
android:text="@string/live_guard"
|
||||||
|
android:textColor="#000000"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/gudBgView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/gudBgView"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/user_guard_ico"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/gudBgView"
|
||||||
|
app:layout_constraintVertical_bias="0.32" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/user_guard_time"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingStart="9dp"
|
||||||
|
android:paddingEnd="2dp"
|
||||||
|
android:text="@string/guard_for_your_beloved_one"
|
||||||
|
android:textColor="#777777"
|
||||||
|
android:textSize="10sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/gudBgView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/gudBgView"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/user_guard_ico"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/user_guard_text"
|
||||||
|
app:layout_constraintVertical_bias="0.32" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/userRightView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginTop="-16dp"
|
||||||
|
android:layout_marginBottom="-8dp"
|
||||||
|
android:background="@drawable/bg_me_data"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/userRightRecyclerView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/userRightTv" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/userRightTv"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="24dp"
|
||||||
|
android:text="@string/user_rights"
|
||||||
|
android:textColor="@color/color_111111"
|
||||||
|
android:textSize="14sp"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/vipBgView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/vipBgView" />
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/userRightRecyclerView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="9dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_marginEnd="9dp"
|
||||||
|
android:layout_marginBottom="9dp"
|
||||||
|
android:focusable="false"
|
||||||
|
android:nestedScrollingEnabled="false"
|
||||||
|
android:overScrollMode="never"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/userRightTv"
|
||||||
|
tools:itemCount="3" />
|
||||||
|
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/creationCenterView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginTop="-16dp"
|
||||||
|
android:layout_marginBottom="-8dp"
|
||||||
|
android:background="@drawable/bg_me_data"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/creationCenterRecyclerView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/creationCenterTv" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/creationCenterTv"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="24dp"
|
||||||
|
android:text="@string/creation_center"
|
||||||
|
android:textColor="@color/color_111111"
|
||||||
|
android:textSize="14sp"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/userRightView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/userRightView" />
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/creationCenterRecyclerView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="9dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_marginEnd="9dp"
|
||||||
|
android:layout_marginBottom="9dp"
|
||||||
|
android:focusable="false"
|
||||||
|
android:nestedScrollingEnabled="false"
|
||||||
|
android:overScrollMode="never"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/userRightView"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/userRightView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/creationCenterTv"
|
||||||
|
tools:itemCount="3" />
|
||||||
|
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/otherFunctionsView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginTop="-16dp"
|
||||||
|
android:layout_marginBottom="-8dp"
|
||||||
|
android:background="@drawable/bg_me_data"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/otherFunctionsRecyclerView"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/otherFunctionsTv" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/otherFunctionsTv"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="24dp"
|
||||||
|
android:text="@string/other_functions"
|
||||||
|
android:textColor="@color/color_111111"
|
||||||
|
android:textSize="14sp"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/creationCenterView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/creationCenterView" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/otherFunctionsView"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/otherFunctionsView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/otherFunctionsView" />
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/otherFunctionsRecyclerView"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="9dp"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_marginEnd="9dp"
|
||||||
|
android:layout_marginBottom="9dp"
|
||||||
|
android:focusable="false"
|
||||||
|
android:nestedScrollingEnabled="false"
|
||||||
|
android:overScrollMode="never"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/creationCenterView"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/creationCenterView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/otherFunctionsTv"
|
||||||
|
tools:itemCount="3" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/lt_advertisement"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="72dp"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="12dp"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/otherFunctionsView"
|
||||||
|
tools:visibility="visible">
|
||||||
|
|
||||||
|
<androidx.cardview.widget.CardView
|
||||||
|
android:id="@+id/cv_chatcontent_img1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
app:cardBackgroundColor="@color/transparent"
|
||||||
|
app:cardCornerRadius="10dp"
|
||||||
|
app:cardElevation="0dp">
|
||||||
|
|
||||||
|
<com.ms.banner.Banner
|
||||||
|
android:id="@+id/banner_me"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
app:delay_time="5000"
|
||||||
|
app:indicator_height="8dp"
|
||||||
|
app:indicator_width="8dp" />
|
||||||
|
</androidx.cardview.widget.CardView>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!--保持一直先隐藏掉的数据-->
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/signature"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="21dp"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:text="这个人很懒,什么也没留下。"
|
||||||
|
android:textColor="@color/gray_cccccc"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/btn_copy"
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
android:layout_marginEnd="5dp"
|
||||||
|
android:background="@drawable/border_grey"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/copy"
|
||||||
|
android:textColor="#ff9f9f9f"
|
||||||
|
android:textSize="10sp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</LinearLayout>
|
BIN
main/src/main/res/mipmap-hdpi/ic_yola_diamond.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_edit.png
Normal file
After Width: | Height: | Size: 454 B |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_gold_coin.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_golden_bean.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_guard.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_recharge.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_right_arrow.png
Normal file
After Width: | Height: | Size: 600 B |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_setting.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
main/src/main/res/mipmap-hdpi/ic_yola_vip_center.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_diamond.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_edit.png
Normal file
After Width: | Height: | Size: 1018 B |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_gold_coin.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_golden_bean.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_guard.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_recharge.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_right_arrow.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_setting.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_yola_vip_center.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_diamond.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_edit.png
Normal file
After Width: | Height: | Size: 865 B |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_gold_coin.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_golden_bean.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_guard.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_recharge.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_right_arrow.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_setting.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/ic_yola_vip_center.png
Normal file
After Width: | Height: | Size: 16 KiB |
@ -108,4 +108,7 @@
|
|||||||
<string name="live_room_sud_hint_join">Join</string>
|
<string name="live_room_sud_hint_join">Join</string>
|
||||||
<string name="live_dialog_top_guardian_tasks">Guard tasks</string>
|
<string name="live_dialog_top_guardian_tasks">Guard tasks</string>
|
||||||
<string name="game">game</string>
|
<string name="game">game</string>
|
||||||
|
<string name="user_rights">用戶權益</string>
|
||||||
|
<string name="creation_center">創作中心</string>
|
||||||
|
<string name="other_functions">其他功能</string>
|
||||||
</resources>
|
</resources>
|
||||||
|