首页
@@ -483,6 +483,12 @@
|
||||
<activity
|
||||
android:name=".view.settings.VisitorActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".view.settings.GenderActiveActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".view.settings.IntimacyListActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
<receiver android:name=".view.main.receiver.NotificationClickReceiver" /> <!-- 微信支付 -->
|
||||
<activity
|
||||
|
||||
@@ -66,6 +66,7 @@ public class ConstUrl {
|
||||
public final static String THIRD = getUrl(BASE_URL, AUTH_FIELD, "third");
|
||||
public final static String SET_USER_INFO = getUrl(BASE_URL, USER_FIELD, "saveinfo");
|
||||
public final static String GET_USER_INFO = getUrl(BASE_URL, USER_FIELD, "home");
|
||||
public final static String INTIMACY_LIST = getUrl(BASE_URL, USER_FIELD, "intimacy_list");
|
||||
public final static String GET_USER_MY_DYNAMIC = getUrl(BASE_URL, USER_FIELD, "my_dynamic_list");
|
||||
public final static String GET_USER_IS_VIP = getUrl(BASE_URL, USER_FIELD, "ifVip");
|
||||
public final static String GET_DYNAMIC_LIST = getUrl(BASE_URL, ZONE_FIELD, "lists");
|
||||
@@ -138,6 +139,7 @@ public class ConstUrl {
|
||||
public final static String BIND_PHONE = getUrl(BASE_URL, USER_FIELD, "bind_mobile");
|
||||
public final static String REAL_NAME_ATTEST = getUrl(BASE_URL, "", "attest/realNameAttest");
|
||||
public final static String BIND_PLATFORM = getUrl(BASE_URL, USER_FIELD, "bind_platform");
|
||||
public final static String SET_DO_NOT_DISTURB = getUrl(BASE_URL, USER_FIELD, "set_do_not_disturb");
|
||||
public final static String CHANGE_VIDEO_STATUS = getUrl(BASE_URL, ANCHOR_FIELD, "set_video_status");
|
||||
public final static String SWITCH_SERVICE_NUM = getUrl(BASE_URL, ANCHOR_FIELD, "switchServiceNum");
|
||||
public final static String GET_GLOBAL_CONFIG = getUrl(BASE_URL, APP_FIELD, "config");
|
||||
@@ -175,6 +177,7 @@ public class ConstUrl {
|
||||
public final static String RECOMMEND_ANCHORS = getUrl(BASE_URL, INDEX_FIELD, "recommend_anchors");
|
||||
public final static String NEW_ANCHORS = getUrl(BASE_URL, INDEX_FIELD, "new_anchors");
|
||||
public final static String ACTIVE_ANCHORS = getUrl(BASE_URL, INDEX_FIELD, "active_anchors");
|
||||
public final static String HOME_DATA = getUrl(BASE_URL, "home/", "index");
|
||||
public final static String COVER_VIDEO = getUrl(BASE_URL, INDEX_FIELD, "cover_video");
|
||||
public final static String CITY_ANCHORS = getUrl(BASE_URL, INDEX_FIELD, "city_anchors");
|
||||
public final static String CHAT_TIP = getUrl(BASE_URL, CHAT_FIELD, "chat_tip");
|
||||
|
||||
@@ -66,4 +66,6 @@ public class Constant {
|
||||
public final static String AES_PASSWORD = "!qianyan20260315";
|
||||
|
||||
public static boolean IS_LOGIN_AGREEMENT_CHECK = false;
|
||||
|
||||
public final static String FRIEND_SELECT = "friend_select";
|
||||
}
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
package com.xuebiping.bolizhuzi.controller.main.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.cardview.widget.CardView;
|
||||
|
||||
@@ -11,15 +15,17 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
||||
import com.facebook.drawee.view.SimpleDraweeView;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.LookMeBean;
|
||||
import com.xuebiping.bolizhuzi.utils.SPUtils;
|
||||
import com.xuebiping.bolizhuzi.utils.StrU;
|
||||
import com.xuebiping.bolizhuzi.view.main.utils.UiUtils;
|
||||
|
||||
import net.lucode.hackware.magicindicator.buildins.UIUtil;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class MainRecommendAdapter extends BaseQuickAdapter<LookMeBean, BaseViewHolder> {
|
||||
public class MainRecommendAdapter extends BaseQuickAdapter<AnchorBean, BaseViewHolder> {
|
||||
|
||||
private Context mContext;
|
||||
private int mTabType; //1代表推荐 2代表语聊 0代表其他
|
||||
@@ -36,14 +42,38 @@ public class MainRecommendAdapter extends BaseQuickAdapter<LookMeBean, BaseViewH
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NotNull BaseViewHolder baseViewHolder, LookMeBean lookMeBean) {
|
||||
recommend(baseViewHolder,lookMeBean);
|
||||
protected void convert(@NotNull BaseViewHolder baseViewHolder, AnchorBean bean) {
|
||||
recommend(baseViewHolder,bean);
|
||||
}
|
||||
|
||||
private void recommend(BaseViewHolder baseViewHolder, LookMeBean lookMeBean) {
|
||||
private void recommend(BaseViewHolder baseViewHolder, AnchorBean bean) {
|
||||
|
||||
CardView card_view = baseViewHolder.getView(R.id.card_view);
|
||||
LinearLayout ll_svip_price = baseViewHolder.getView(R.id.ll_svip_price);
|
||||
LinearLayout ll_svip_price2 = baseViewHolder.getView(R.id.ll_svip_price2);
|
||||
TextView tv_member_price = baseViewHolder.getView(R.id.tv_member_price);
|
||||
TextView tv_member_price2 = baseViewHolder.getView(R.id.tv_member_price2);
|
||||
SimpleDraweeView list_photo = baseViewHolder.getView(R.id.ri_cover);
|
||||
TextView tv_name = baseViewHolder.getView(R.id.tv_name);
|
||||
TextView tv_signature = baseViewHolder.getView(R.id.tv_signature);
|
||||
TextView tv_price = baseViewHolder.getView(R.id.tv_price);
|
||||
View view_online_status = baseViewHolder.getView(R.id.view_online_status);
|
||||
TextView tv_online_status = baseViewHolder.getView(R.id.tv_online_status);
|
||||
|
||||
LinearLayout ll_star = baseViewHolder.getView(R.id.ll_star);
|
||||
LinearLayout ll_star2 = baseViewHolder.getView(R.id.ll_star2);
|
||||
|
||||
ImageView iv_star_1 = baseViewHolder.getView(R.id.iv_star_1);
|
||||
ImageView iv_star_2 = baseViewHolder.getView(R.id.iv_star_2);
|
||||
ImageView iv_star_3 = baseViewHolder.getView(R.id.iv_star_3);
|
||||
ImageView iv_star_4 = baseViewHolder.getView(R.id.iv_star_4);
|
||||
ImageView iv_star_5 = baseViewHolder.getView(R.id.iv_star_5);
|
||||
|
||||
ImageView iv_star_12 = baseViewHolder.getView(R.id.iv_star_12);
|
||||
ImageView iv_star_22 = baseViewHolder.getView(R.id.iv_star_22);
|
||||
ImageView iv_star_32 = baseViewHolder.getView(R.id.iv_star_32);
|
||||
ImageView iv_star_42 = baseViewHolder.getView(R.id.iv_star_42);
|
||||
ImageView iv_star_52 = baseViewHolder.getView(R.id.iv_star_52);
|
||||
|
||||
if (mTabType == 1) {
|
||||
int recommend_layout_change = SPUtils.getInt(mContext, "recommend_layout_change");
|
||||
@@ -51,39 +81,171 @@ public class MainRecommendAdapter extends BaseQuickAdapter<LookMeBean, BaseViewH
|
||||
LinearLayout.LayoutParams layoutParams =
|
||||
new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) mContext.getResources().getDimension(R.dimen.dp230));
|
||||
card_view.setLayoutParams(layoutParams);
|
||||
|
||||
|
||||
tv_name.setTextSize(12);
|
||||
tv_name.setMaxEms(5);
|
||||
tv_signature.setTextSize(10);
|
||||
tv_signature.setTextColor(Color.parseColor("#80FFFFFF"));
|
||||
tv_signature.setMaxEms(6);
|
||||
tv_price.setTextSize(8);
|
||||
|
||||
if (bean.getMember_discount_price() == 0) {
|
||||
ll_svip_price.setVisibility(View.GONE);
|
||||
ll_svip_price2.setVisibility(View.GONE);
|
||||
} else {
|
||||
ll_svip_price.setVisibility(View.VISIBLE);
|
||||
ll_svip_price2.setVisibility(View.GONE);
|
||||
tv_member_price.setText(bean.getMember_discount_price() + "金币/分");
|
||||
}
|
||||
|
||||
ll_star.setVisibility(View.VISIBLE);
|
||||
ll_star2.setVisibility(View.GONE);
|
||||
setStarLevel(bean, iv_star_1, iv_star_2, iv_star_3, iv_star_4, iv_star_5);
|
||||
|
||||
}else if (recommend_layout_change == 1) {
|
||||
LinearLayout.LayoutParams layoutParams =
|
||||
new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) mContext.getResources().getDimension(R.dimen.dp336));
|
||||
card_view.setLayoutParams(layoutParams);
|
||||
|
||||
tv_name.setTextSize(16);
|
||||
tv_name.setMaxEms(8);
|
||||
tv_signature.setTextSize(14);
|
||||
tv_signature.setTextColor(Color.WHITE);
|
||||
tv_signature.setMaxEms(12);
|
||||
tv_price.setTextSize(12);
|
||||
|
||||
if (bean.getMember_discount_price() == 0) {
|
||||
ll_svip_price.setVisibility(View.GONE);
|
||||
ll_svip_price2.setVisibility(View.GONE);
|
||||
} else {
|
||||
ll_svip_price.setVisibility(View.GONE);
|
||||
ll_svip_price2.setVisibility(View.VISIBLE);
|
||||
tv_member_price2.setText(bean.getMember_discount_price() + "金币/分");
|
||||
}
|
||||
|
||||
ll_star.setVisibility(View.GONE);
|
||||
ll_star2.setVisibility(View.VISIBLE);
|
||||
setStarLevel(bean, iv_star_12, iv_star_22, iv_star_32, iv_star_42, iv_star_52);
|
||||
}
|
||||
|
||||
ll_svip_price.setVisibility(View.VISIBLE);
|
||||
tv_price.setText(bean.getPrice() + "金币/分");
|
||||
|
||||
}else if (mTabType == 2) {
|
||||
int voice_layout_change = SPUtils.getInt(mContext, "voice_layout_change");
|
||||
if (voice_layout_change == 0) { //0代表2格 1代表1格
|
||||
LinearLayout.LayoutParams layoutParams =
|
||||
new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) mContext.getResources().getDimension(R.dimen.dp230));
|
||||
card_view.setLayoutParams(layoutParams);
|
||||
|
||||
tv_name.setTextSize(12);
|
||||
tv_name.setMaxEms(5);
|
||||
tv_signature.setTextSize(10);
|
||||
tv_signature.setTextColor(Color.parseColor("#80FFFFFF"));
|
||||
tv_signature.setMaxEms(6);
|
||||
tv_price.setTextSize(8);
|
||||
|
||||
ll_star.setVisibility(View.VISIBLE);
|
||||
ll_star2.setVisibility(View.GONE);
|
||||
setStarLevel(bean, iv_star_1, iv_star_2, iv_star_3, iv_star_4, iv_star_5);
|
||||
}else if (voice_layout_change == 1) {
|
||||
LinearLayout.LayoutParams layoutParams =
|
||||
new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) mContext.getResources().getDimension(R.dimen.dp336));
|
||||
card_view.setLayoutParams(layoutParams);
|
||||
|
||||
tv_name.setTextSize(16);
|
||||
tv_name.setMaxEms(8);
|
||||
tv_signature.setTextSize(14);
|
||||
tv_signature.setTextColor(Color.WHITE);
|
||||
tv_signature.setMaxEms(12);
|
||||
tv_price.setTextSize(12);
|
||||
|
||||
ll_star.setVisibility(View.GONE);
|
||||
ll_star2.setVisibility(View.VISIBLE);
|
||||
setStarLevel(bean, iv_star_12, iv_star_22, iv_star_32, iv_star_42, iv_star_52);
|
||||
}
|
||||
|
||||
ll_svip_price.setVisibility(View.GONE);
|
||||
ll_svip_price2.setVisibility(View.GONE);
|
||||
|
||||
tv_price.setText(bean.getVoice_price() + "金币/分");
|
||||
}else {
|
||||
LinearLayout.LayoutParams layoutParams =
|
||||
new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) mContext.getResources().getDimension(R.dimen.dp336));
|
||||
card_view.setLayoutParams(layoutParams);
|
||||
|
||||
ll_svip_price.setVisibility(View.VISIBLE);
|
||||
tv_name.setTextSize(16);
|
||||
tv_name.setMaxEms(8);
|
||||
tv_signature.setTextSize(14);
|
||||
tv_signature.setTextColor(Color.WHITE);
|
||||
tv_signature.setMaxEms(12);
|
||||
tv_price.setTextSize(12);
|
||||
|
||||
if (bean.getMember_discount_price() == 0) {
|
||||
ll_svip_price.setVisibility(View.GONE);
|
||||
ll_svip_price2.setVisibility(View.GONE);
|
||||
} else {
|
||||
ll_svip_price.setVisibility(View.GONE);
|
||||
ll_svip_price2.setVisibility(View.VISIBLE);
|
||||
tv_member_price2.setText(bean.getMember_discount_price() + "金币/分");
|
||||
}
|
||||
|
||||
ll_star.setVisibility(View.GONE);
|
||||
ll_star2.setVisibility(View.VISIBLE);
|
||||
setStarLevel(bean, iv_star_12, iv_star_22, iv_star_32, iv_star_42, iv_star_52);
|
||||
|
||||
tv_price.setText(bean.getPrice() + "金币/分");
|
||||
}
|
||||
|
||||
list_photo.setImageURI(StrU.getResourcePath(bean.getCover(), mContext));
|
||||
tv_name.setText(bean.getNickname());
|
||||
tv_signature.setText(bean.getSignature());
|
||||
tv_signature.setText("我说心动之上 哈哈哈哈");
|
||||
|
||||
SimpleDraweeView list_photo = baseViewHolder.getView(R.id.ri_cover);
|
||||
|
||||
list_photo.setImageURI(StrU.getResourcePath(lookMeBean.getAvatar_url(), mContext));
|
||||
if (bean.getOnline_status() == 0) {
|
||||
view_online_status.setBackgroundResource(R.drawable.shape_999999_oval_bg);
|
||||
tv_online_status.setText("离线");
|
||||
}else if (bean.getOnline_status() == 1) {
|
||||
view_online_status.setBackgroundResource(R.drawable.shape_6ce4b7_oval_bg);
|
||||
tv_online_status.setText("在线");
|
||||
}else if (bean.getOnline_status() == 2) {
|
||||
view_online_status.setBackgroundResource(R.drawable.shape_f2b854_oval_bg);
|
||||
tv_online_status.setText("活跃");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void setStarLevel(AnchorBean bean, ImageView ivStar1, ImageView ivStar2, ImageView ivStar3, ImageView ivStar4, ImageView ivStar5) {
|
||||
if (bean.getStar_level() == 1) {
|
||||
ivStar1.setVisibility(View.VISIBLE);
|
||||
ivStar2.setVisibility(View.GONE);
|
||||
ivStar3.setVisibility(View.GONE);
|
||||
ivStar4.setVisibility(View.GONE);
|
||||
ivStar5.setVisibility(View.GONE);
|
||||
} else if (bean.getStar_level() == 2) {
|
||||
ivStar1.setVisibility(View.VISIBLE);
|
||||
ivStar2.setVisibility(View.VISIBLE);
|
||||
ivStar3.setVisibility(View.GONE);
|
||||
ivStar4.setVisibility(View.GONE);
|
||||
ivStar5.setVisibility(View.GONE);
|
||||
} else if (bean.getStar_level() == 3) {
|
||||
ivStar1.setVisibility(View.VISIBLE);
|
||||
ivStar2.setVisibility(View.VISIBLE);
|
||||
ivStar3.setVisibility(View.VISIBLE);
|
||||
ivStar4.setVisibility(View.GONE);
|
||||
ivStar5.setVisibility(View.GONE);
|
||||
} else if (bean.getStar_level() == 4) {
|
||||
ivStar1.setVisibility(View.VISIBLE);
|
||||
ivStar2.setVisibility(View.VISIBLE);
|
||||
ivStar3.setVisibility(View.VISIBLE);
|
||||
ivStar4.setVisibility(View.VISIBLE);
|
||||
ivStar5.setVisibility(View.GONE);
|
||||
} else if (bean.getStar_level() == 5) {
|
||||
ivStar1.setVisibility(View.VISIBLE);
|
||||
ivStar2.setVisibility(View.VISIBLE);
|
||||
ivStar3.setVisibility(View.VISIBLE);
|
||||
ivStar4.setVisibility(View.VISIBLE);
|
||||
ivStar5.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -246,6 +246,31 @@ public class MainManager {
|
||||
}
|
||||
};
|
||||
|
||||
// task.start();
|
||||
task.start(false);
|
||||
}
|
||||
|
||||
public static void getHomeData(BaseActivity activity,
|
||||
String type,
|
||||
final int page,
|
||||
HttpUiCallBack<ChannelAnchorBean> httpUiCallBack) {
|
||||
HttpWithUiTask<ChannelAnchorBean> task = new HttpWithUiTask<ChannelAnchorBean>(activity, httpUiCallBack) {
|
||||
@Override
|
||||
protected HttpResult<ChannelAnchorBean> run() throws Exception {
|
||||
final String url = ConstUrl.HOME_DATA;
|
||||
HttpRequest.Builder builder = new HttpRequest.Builder()
|
||||
.setResultType(new TType<HttpResult<ChannelAnchorBean>>() {
|
||||
|
||||
}).setHttpMethod(HttpMethod.POST)
|
||||
.addParam("type", type)
|
||||
.addParam("page", page + "")
|
||||
.setUrl(url);
|
||||
|
||||
HttpRequest request = builder.build();
|
||||
return request.request();
|
||||
}
|
||||
};
|
||||
|
||||
// task.start();
|
||||
task.start(false);
|
||||
}
|
||||
@@ -600,7 +625,7 @@ public class MainManager {
|
||||
.setResultType(new TType<HttpResult<MainPageAnchorBean>>() {
|
||||
|
||||
}).setHttpMethod(HttpMethod.POST)
|
||||
.addParam("status", status + "")
|
||||
.addParam("value", status + "")
|
||||
.setUrl(url);
|
||||
|
||||
HttpRequest request = builder.build();
|
||||
@@ -611,6 +636,28 @@ public class MainManager {
|
||||
task.start();
|
||||
}
|
||||
|
||||
public static void changeVideoStatus2(BaseActivity activity,
|
||||
final int status,
|
||||
HttpUiCallBack<MainPageAnchorBean> httpUiCallBack) {
|
||||
HttpWithUiTask<MainPageAnchorBean> task = new HttpWithUiTask<MainPageAnchorBean>(activity, httpUiCallBack) {
|
||||
@Override
|
||||
protected HttpResult<MainPageAnchorBean> run() throws Exception {
|
||||
final String url = ConstUrl.SET_DO_NOT_DISTURB;
|
||||
HttpRequest.Builder builder = new HttpRequest.Builder()
|
||||
.setResultType(new TType<HttpResult<MainPageAnchorBean>>() {
|
||||
|
||||
}).setHttpMethod(HttpMethod.POST)
|
||||
.addParam("do_not_disturb", status + "")
|
||||
.setUrl(url);
|
||||
|
||||
HttpRequest request = builder.build();
|
||||
return request.request();
|
||||
}
|
||||
};
|
||||
|
||||
task.start(false);
|
||||
}
|
||||
|
||||
public static void changeswitchServiceNum(BaseActivity activity,
|
||||
final int status,
|
||||
HttpUiCallBack<MainPageSwitchSwerviceNumBean> httpUiCallBack) {
|
||||
@@ -904,6 +951,30 @@ public class MainManager {
|
||||
task.start();
|
||||
}
|
||||
|
||||
public static void getGenderActiveList(BaseActivity activity,
|
||||
final int gender,
|
||||
final int page,
|
||||
HttpUiCallBack<UserGenderListBean> httpUiCallBack) {
|
||||
HttpWithUiTask<UserGenderListBean> task = new HttpWithUiTask<UserGenderListBean>(activity, httpUiCallBack) {
|
||||
@Override
|
||||
protected HttpResult<UserGenderListBean> run() throws Exception {
|
||||
String url = ConstUrl.GET_ACTIVE_USERS;
|
||||
HttpRequest.Builder builder = new HttpRequest.Builder()
|
||||
.setResultType(new TType<HttpResult<UserGenderListBean>>() {
|
||||
|
||||
}).setHttpMethod(HttpMethod.POST)
|
||||
.addParam("gender", gender + "")
|
||||
.addParam("page", page + "")
|
||||
.setUrl(url);
|
||||
|
||||
HttpRequest request = builder.build();
|
||||
return request.request();
|
||||
}
|
||||
};
|
||||
|
||||
task.start(false);
|
||||
}
|
||||
|
||||
public static void getSystemVersion(BaseActivity activity,
|
||||
HttpUiCallBack<SystemVersionBean> httpUiCallBack) {
|
||||
HttpWithUiTask<SystemVersionBean> task = new HttpWithUiTask<SystemVersionBean>(activity, httpUiCallBack) {
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.xuebiping.bolizhuzi.controller.settings.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Color;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
||||
import com.facebook.drawee.view.SimpleDraweeView;
|
||||
import com.flyco.roundview.RoundTextView;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.im.uikit.api.NimUIKit;
|
||||
import com.xuebiping.bolizhuzi.model.settings.UserInfoBean;
|
||||
import com.xuebiping.bolizhuzi.utils.StrU;
|
||||
import com.xuebiping.bolizhuzi.view.main.MainPageActivity;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class GenderActiveAdapter extends BaseQuickAdapter<UserInfoBean, BaseViewHolder> {
|
||||
|
||||
private Context mContext;
|
||||
|
||||
public GenderActiveAdapter(int layoutResId, Context context) {
|
||||
super(layoutResId);
|
||||
this.mContext = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NotNull BaseViewHolder baseViewHolder, UserInfoBean bean) {
|
||||
LinearLayout lin_gender_item = baseViewHolder.getView(R.id.lin_gender_item);
|
||||
SimpleDraweeView user_head = baseViewHolder.getView(R.id.user_head);
|
||||
View view_online_status = baseViewHolder.getView(R.id.view_online_status);
|
||||
TextView tv_nick_name = baseViewHolder.getView(R.id.tv_nick_name);
|
||||
ImageView iv_member_sign = baseViewHolder.getView(R.id.iv_member_sign);
|
||||
TextView tv_user_info = baseViewHolder.getView(R.id.tv_user_info);
|
||||
TextView iv_luck_hi = baseViewHolder.getView(R.id.iv_luck_hi);
|
||||
|
||||
user_head.setImageURI(StrU.getResourcePath(bean.getAvatar(), mContext));
|
||||
|
||||
if (bean.getOnline_status() == 0) {
|
||||
view_online_status.setBackgroundResource(R.drawable.shape_999999_oval_bg);
|
||||
}else if (bean.getOnline_status() == 1) {
|
||||
view_online_status.setBackgroundResource(R.drawable.shape_6ce4b7_oval_bg);
|
||||
}else if (bean.getOnline_status() == 2) {
|
||||
view_online_status.setBackgroundResource(R.drawable.shape_f2b854_oval_bg);
|
||||
}
|
||||
|
||||
tv_nick_name.setText(bean.getNickname());
|
||||
|
||||
if (0 == bean.getVip()) {
|
||||
iv_member_sign.setVisibility(View.VISIBLE);
|
||||
iv_member_sign.setImageResource(R.drawable.ic_pvip);
|
||||
} else if (1 == bean.getVip()) {
|
||||
iv_member_sign.setVisibility(View.VISIBLE);
|
||||
iv_member_sign.setImageResource(R.drawable.ic_gvip);
|
||||
} else {
|
||||
iv_member_sign.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (TextUtils.isEmpty(bean.getCity())) {
|
||||
tv_user_info.setText((bean.getGender() == 2 ? "男" : "女") + " | " + bean.getAge());
|
||||
}else {
|
||||
tv_user_info.setText(bean.getCity() + " | " + (bean.getGender() == 2 ? "男" : "女") + " | " + bean.getAge());
|
||||
}
|
||||
|
||||
iv_luck_hi.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
NimUIKit.startP2PSession(mContext, bean.getUser_id() + "");
|
||||
}
|
||||
});
|
||||
|
||||
lin_gender_item.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Intent intent = new Intent(mContext, MainPageActivity.class);
|
||||
intent.putExtra("userId", bean.getUserid());
|
||||
mContext.startActivity(intent);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.xuebiping.bolizhuzi.controller.settings.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.view.View;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
||||
import com.facebook.drawee.view.SimpleDraweeView;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.model.settings.IntimacyBean;
|
||||
import com.xuebiping.bolizhuzi.utils.StrU;
|
||||
import com.xuebiping.bolizhuzi.view.main.MainPageActivity;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class IntimacyAdapter extends BaseQuickAdapter<IntimacyBean, BaseViewHolder> {
|
||||
|
||||
private Context mContext;
|
||||
|
||||
public IntimacyAdapter(int layoutResId, Context context) {
|
||||
super(layoutResId);
|
||||
this.mContext = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NotNull BaseViewHolder baseViewHolder, IntimacyBean bean) {
|
||||
RelativeLayout rl_item = baseViewHolder.getView(R.id.rl_item);
|
||||
SimpleDraweeView user_head = baseViewHolder.getView(R.id.user_head);
|
||||
TextView tv_nick_name = baseViewHolder.getView(R.id.tv_nick_name);
|
||||
TextView tv_intimacy = baseViewHolder.getView(R.id.tv_intimacy);
|
||||
|
||||
user_head.setImageURI(StrU.getResourcePath(bean.getAvatar(), mContext));
|
||||
tv_nick_name.setText(bean.getNickname());
|
||||
tv_intimacy.setText(bean.getTotal_consume_coin() + "");
|
||||
|
||||
rl_item.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Intent intent = new Intent(mContext, MainPageActivity.class);
|
||||
intent.putExtra("userId", bean.getUser_id());
|
||||
mContext.startActivity(intent);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ import com.xuebiping.bolizhuzi.model.settings.CancellationBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.ChatPriceBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.GoddessPrivilegeBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.GreetingBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.IntimacyListBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.InvitationBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.InviteDataListBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.MemberBean;
|
||||
@@ -315,6 +316,27 @@ public class SettingManager {
|
||||
task.start();
|
||||
}
|
||||
|
||||
public static void getIntimacyList(BaseActivity activity, final int page,
|
||||
HttpUiCallBack<IntimacyListBean> httpUiCallBack) {
|
||||
HttpWithUiTask<IntimacyListBean> task = new HttpWithUiTask<IntimacyListBean>(activity, httpUiCallBack) {
|
||||
@Override
|
||||
protected HttpResult<IntimacyListBean> run() throws Exception {
|
||||
final String url = ConstUrl.INTIMACY_LIST;
|
||||
HttpRequest.Builder builder = new HttpRequest.Builder()
|
||||
.setResultType(new TType<HttpResult<IntimacyListBean>>() {
|
||||
|
||||
}).setHttpMethod(HttpMethod.POST)
|
||||
.addParam("page", page + "")
|
||||
.setUrl(url);
|
||||
|
||||
HttpRequest request = builder.build();
|
||||
return request.request();
|
||||
}
|
||||
};
|
||||
|
||||
task.start(false);
|
||||
}
|
||||
|
||||
public static void rankWealth(BaseActivity activity,
|
||||
final int type, final int page,
|
||||
HttpUiCallBack<RankListBean> httpUiCallBack) {
|
||||
@@ -537,7 +559,7 @@ public class SettingManager {
|
||||
}
|
||||
};
|
||||
|
||||
task.start();
|
||||
task.start(false);
|
||||
}
|
||||
|
||||
public static void getContactList(BaseActivity activity,
|
||||
|
||||
@@ -23,6 +23,33 @@ public class AnchorBean implements Serializable {
|
||||
private boolean isVideo;
|
||||
private boolean is_follow;//true关注false未关注
|
||||
private int anchor_tag;// 1=王牌 2=人气
|
||||
private int member_discount_price; //会员优惠价格
|
||||
private int star_level; //星级
|
||||
private int voice_price; //语聊价格
|
||||
|
||||
public int getVoice_price() {
|
||||
return voice_price;
|
||||
}
|
||||
|
||||
public void setVoice_price(int voice_price) {
|
||||
this.voice_price = voice_price;
|
||||
}
|
||||
|
||||
public int getStar_level() {
|
||||
return star_level;
|
||||
}
|
||||
|
||||
public void setStar_level(int star_level) {
|
||||
this.star_level = star_level;
|
||||
}
|
||||
|
||||
public int getMember_discount_price() {
|
||||
return member_discount_price;
|
||||
}
|
||||
|
||||
public void setMember_discount_price(int member_discount_price) {
|
||||
this.member_discount_price = member_discount_price;
|
||||
}
|
||||
|
||||
public int getPrice() {
|
||||
return price;
|
||||
|
||||
@@ -8,9 +8,18 @@ public class AnchorListBean {
|
||||
private String skill_name;
|
||||
private String skill_icon;
|
||||
private int total;
|
||||
private int total_page;
|
||||
private List<AnchorBean> anchors = new ArrayList<>();
|
||||
private List<AnchorBean> list = new ArrayList<>();
|
||||
|
||||
public int getTotal_page() {
|
||||
return total_page;
|
||||
}
|
||||
|
||||
public void setTotal_page(int total_page) {
|
||||
this.total_page = total_page;
|
||||
}
|
||||
|
||||
public List<AnchorBean> getAnchors() {
|
||||
return anchors;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,15 @@ public class MainPageAnchorBean {
|
||||
private int open_video_status;
|
||||
private int open_voice_status;
|
||||
private int video_status;
|
||||
private int do_not_disturb;
|
||||
|
||||
public int getDo_not_disturb() {
|
||||
return do_not_disturb;
|
||||
}
|
||||
|
||||
public void setDo_not_disturb(int do_not_disturb) {
|
||||
this.do_not_disturb = do_not_disturb;
|
||||
}
|
||||
|
||||
public int getOpen_video_status() {
|
||||
return open_video_status;
|
||||
|
||||
@@ -8,6 +8,7 @@ import java.util.List;
|
||||
public class UserGenderBean {
|
||||
private int total;
|
||||
private int page;
|
||||
private int total_page;
|
||||
private List<UserInfoBean> list = new ArrayList<>();
|
||||
|
||||
public int getTotal() {
|
||||
@@ -33,4 +34,12 @@ public class UserGenderBean {
|
||||
public void setList(List<UserInfoBean> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
public int getTotal_page() {
|
||||
return total_page;
|
||||
}
|
||||
|
||||
public void setTotal_page(int total_page) {
|
||||
this.total_page = total_page;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.xuebiping.bolizhuzi.model.settings;
|
||||
|
||||
public class IntimacyBean {
|
||||
|
||||
private int user_id;
|
||||
private int total_consume_coin;
|
||||
private String nickname;
|
||||
private String avatar;
|
||||
|
||||
public int getUser_id() {
|
||||
return user_id;
|
||||
}
|
||||
|
||||
public void setUser_id(int user_id) {
|
||||
this.user_id = user_id;
|
||||
}
|
||||
|
||||
public int getTotal_consume_coin() {
|
||||
return total_consume_coin;
|
||||
}
|
||||
|
||||
public void setTotal_consume_coin(int total_consume_coin) {
|
||||
this.total_consume_coin = total_consume_coin;
|
||||
}
|
||||
|
||||
public String getNickname() {
|
||||
return nickname;
|
||||
}
|
||||
|
||||
public void setNickname(String nickname) {
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.xuebiping.bolizhuzi.model.settings;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class IntimacyListBean {
|
||||
|
||||
private int page;
|
||||
private int total_page;
|
||||
private List<IntimacyBean> list = new ArrayList<>();
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public int getTotal_page() {
|
||||
return total_page;
|
||||
}
|
||||
|
||||
public void setTotal_page(int total_page) {
|
||||
this.total_page = total_page;
|
||||
}
|
||||
|
||||
public List<IntimacyBean> getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<IntimacyBean> list) {
|
||||
this.list = list;
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,24 @@ public class UserInfoBean {
|
||||
private String signature;
|
||||
private UserFrameBean user_frame;
|
||||
private int user_type;
|
||||
private int online_status;
|
||||
private int do_not_disturb;
|
||||
|
||||
public int getDo_not_disturb() {
|
||||
return do_not_disturb;
|
||||
}
|
||||
|
||||
public void setDo_not_disturb(int do_not_disturb) {
|
||||
this.do_not_disturb = do_not_disturb;
|
||||
}
|
||||
|
||||
public int getOnline_status() {
|
||||
return online_status;
|
||||
}
|
||||
|
||||
public void setOnline_status(int online_status) {
|
||||
this.online_status = online_status;
|
||||
}
|
||||
|
||||
public int getUser_type() {
|
||||
return user_type;
|
||||
|
||||
@@ -11,12 +11,18 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.MainRecommendAdapter;
|
||||
import com.xuebiping.bolizhuzi.model.main.LookMeBean;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorListBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.ChannelAnchorBean;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -25,12 +31,15 @@ import java.util.List;
|
||||
|
||||
public class MainFiveStarFragment extends Fragment implements OnRefreshLoadMoreListener {
|
||||
|
||||
private String mType = "five_star";
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_list;
|
||||
private MainRecommendAdapter mAdapter;
|
||||
|
||||
private int mPage = 1;
|
||||
private List<LookMeBean> mData = new ArrayList<>();
|
||||
private int mTotalPage;
|
||||
private List<AnchorBean> mData = new ArrayList<>();
|
||||
private LinearLayoutManager mLinearLayoutManager;
|
||||
|
||||
@Nullable
|
||||
@@ -57,21 +66,42 @@ public class MainFiveStarFragment extends Fragment implements OnRefreshLoadMoreL
|
||||
}
|
||||
|
||||
private void getData(int page) {
|
||||
MainManager.getHomeData((BaseActivity) getActivity(), mType, page, new HttpUiCallBack<ChannelAnchorBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, ChannelAnchorBean result, String message) {
|
||||
finishFresh();
|
||||
if (result != null) {
|
||||
|
||||
if (page == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
if (mPage == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
LookMeBean lookMeBean = new LookMeBean();
|
||||
lookMeBean.setId(i + "");
|
||||
lookMeBean.setAvatar_url("uploads/admin/202403/25/04cf409ab9148f11c0052bb254b5c155.jpg");
|
||||
mData.add(lookMeBean);
|
||||
AnchorListBean list1 = result.getList();
|
||||
if (list1 != null) {
|
||||
mTotalPage = list1.getTotal_page();
|
||||
List<AnchorBean> list = list1.getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
mAdapter.setList(mData);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, tip);
|
||||
}
|
||||
|
||||
finishFresh();
|
||||
mAdapter.setList(mData);
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void finishFresh() {
|
||||
@@ -82,7 +112,12 @@ public class MainFiveStarFragment extends Fragment implements OnRefreshLoadMoreL
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
getData(mPage);
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getData(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -11,12 +11,19 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.MainRecommendAdapter;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorListBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.ChannelAnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.LookMeBean;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -25,12 +32,15 @@ import java.util.List;
|
||||
|
||||
public class MainFourStarFragment extends Fragment implements OnRefreshLoadMoreListener {
|
||||
|
||||
private String mType = "four_star";
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_list;
|
||||
private MainRecommendAdapter mAdapter;
|
||||
|
||||
private int mPage = 1;
|
||||
private List<LookMeBean> mData = new ArrayList<>();
|
||||
private int mTotalPage;
|
||||
private List<AnchorBean> mData = new ArrayList<>();
|
||||
private LinearLayoutManager mLinearLayoutManager;
|
||||
|
||||
@Nullable
|
||||
@@ -57,21 +67,42 @@ public class MainFourStarFragment extends Fragment implements OnRefreshLoadMoreL
|
||||
}
|
||||
|
||||
private void getData(int page) {
|
||||
MainManager.getHomeData((BaseActivity) getActivity(), mType, page, new HttpUiCallBack<ChannelAnchorBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, ChannelAnchorBean result, String message) {
|
||||
finishFresh();
|
||||
if (result != null) {
|
||||
|
||||
if (page == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
if (mPage == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
LookMeBean lookMeBean = new LookMeBean();
|
||||
lookMeBean.setId(i + "");
|
||||
lookMeBean.setAvatar_url("uploads/admin/202403/25/04cf409ab9148f11c0052bb254b5c155.jpg");
|
||||
mData.add(lookMeBean);
|
||||
AnchorListBean list1 = result.getList();
|
||||
if (list1 != null) {
|
||||
mTotalPage = list1.getTotal_page();
|
||||
List<AnchorBean> list = list1.getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
mAdapter.setList(mData);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, tip);
|
||||
}
|
||||
|
||||
finishFresh();
|
||||
mAdapter.setList(mData);
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void finishFresh() {
|
||||
@@ -82,7 +113,12 @@ public class MainFourStarFragment extends Fragment implements OnRefreshLoadMoreL
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
getData(mPage);
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getData(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -11,12 +11,18 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.MainRecommendAdapter;
|
||||
import com.xuebiping.bolizhuzi.model.main.LookMeBean;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorListBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.ChannelAnchorBean;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -25,12 +31,15 @@ import java.util.List;
|
||||
|
||||
public class MainNewPeopleFragment extends Fragment implements OnRefreshLoadMoreListener {
|
||||
|
||||
private String mType = "new";
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_list;
|
||||
private MainRecommendAdapter mAdapter;
|
||||
|
||||
private int mPage = 1;
|
||||
private List<LookMeBean> mData = new ArrayList<>();
|
||||
private int mTotalPage;
|
||||
private List<AnchorBean> mData = new ArrayList<>();
|
||||
private LinearLayoutManager mLinearLayoutManager;
|
||||
|
||||
@Nullable
|
||||
@@ -57,21 +66,42 @@ public class MainNewPeopleFragment extends Fragment implements OnRefreshLoadMore
|
||||
}
|
||||
|
||||
private void getData(int page) {
|
||||
MainManager.getHomeData((BaseActivity) getActivity(), mType, page, new HttpUiCallBack<ChannelAnchorBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, ChannelAnchorBean result, String message) {
|
||||
finishFresh();
|
||||
if (result != null) {
|
||||
|
||||
if (page == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
if (mPage == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
LookMeBean lookMeBean = new LookMeBean();
|
||||
lookMeBean.setId(i + "");
|
||||
lookMeBean.setAvatar_url("uploads/admin/202403/25/04cf409ab9148f11c0052bb254b5c155.jpg");
|
||||
mData.add(lookMeBean);
|
||||
AnchorListBean list1 = result.getList();
|
||||
if (list1 != null) {
|
||||
mTotalPage = list1.getTotal_page();
|
||||
List<AnchorBean> list = list1.getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
mAdapter.setList(mData);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, tip);
|
||||
}
|
||||
|
||||
finishFresh();
|
||||
mAdapter.setList(mData);
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void finishFresh() {
|
||||
@@ -82,7 +112,12 @@ public class MainNewPeopleFragment extends Fragment implements OnRefreshLoadMore
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
getData(mPage);
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getData(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -22,9 +22,12 @@ import androidx.viewpager.widget.ViewPager;
|
||||
import com.fengliyan.uikit.UiUtils;
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.constant.Constant;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.MainViewPagerAdapter;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.ScaleTransitionPagerTitleView;
|
||||
import com.xuebiping.bolizhuzi.controller.user.manager.UserManager;
|
||||
import com.xuebiping.bolizhuzi.im.uikit.common.ToastHelper;
|
||||
import com.xuebiping.bolizhuzi.utils.NoClearSPUtils;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.main.dialog.ShaiXuanDialog;
|
||||
|
||||
@@ -62,7 +65,7 @@ public class MainRecommend2Fragment extends Fragment implements View.OnClickList
|
||||
private MainNewPeopleFragment mNewPeopleFragment;
|
||||
private MainFiveStarFragment mFiveStarFragment;
|
||||
private MainFourStarFragment mFourStarFragment;
|
||||
private MainRecommendActiveFragment mThreeStarFragment;
|
||||
private MainThreeStarFragment mThreeStarFragment;
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
@@ -97,7 +100,7 @@ public class MainRecommend2Fragment extends Fragment implements View.OnClickList
|
||||
mNewPeopleFragment = new MainNewPeopleFragment();
|
||||
mFiveStarFragment = new MainFiveStarFragment();
|
||||
mFourStarFragment = new MainFourStarFragment();
|
||||
mThreeStarFragment = new MainRecommendActiveFragment();
|
||||
mThreeStarFragment = new MainThreeStarFragment();
|
||||
|
||||
mChannelFragments.add(mLookMeFragment);
|
||||
mChannelFragments.add(mRecommendFragment);
|
||||
@@ -145,6 +148,7 @@ public class MainRecommend2Fragment extends Fragment implements View.OnClickList
|
||||
|
||||
mViewPagerAdapter.notifyDataSetChanged();
|
||||
mMainViewPager.setCurrentItem(mIndex);
|
||||
mMainViewPager.setOffscreenPageLimit(7);
|
||||
}
|
||||
|
||||
private void initMagicIndicator() {
|
||||
@@ -286,7 +290,7 @@ public class MainRecommend2Fragment extends Fragment implements View.OnClickList
|
||||
shaiXuanDialog.setRightOnClickListener(new ShaiXuanDialog.OnDialogRightClickListener() {
|
||||
@Override
|
||||
public void rightClick(int isSelect) {
|
||||
ToastHelper.showToast(getContext(),"选择了 " + isSelect);
|
||||
NoClearSPUtils.saveInt(getActivity(), UserManager.getUserInfo().getUser_id() + Constant.FRIEND_SELECT, isSelect);
|
||||
}
|
||||
});
|
||||
}else if (view == mRl_home_change) {
|
||||
|
||||
@@ -11,12 +11,18 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.MainRecommendAdapter;
|
||||
import com.xuebiping.bolizhuzi.model.main.LookMeBean;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorListBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.ChannelAnchorBean;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -25,12 +31,15 @@ import java.util.List;
|
||||
|
||||
public class MainThreeStarFragment extends Fragment implements OnRefreshLoadMoreListener {
|
||||
|
||||
private String mType = "three_star";
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_list;
|
||||
private MainRecommendAdapter mAdapter;
|
||||
|
||||
private int mPage = 1;
|
||||
private List<LookMeBean> mData = new ArrayList<>();
|
||||
private int mTotalPage;
|
||||
private List<AnchorBean> mData = new ArrayList<>();
|
||||
private LinearLayoutManager mLinearLayoutManager;
|
||||
|
||||
@Nullable
|
||||
@@ -57,21 +66,42 @@ public class MainThreeStarFragment extends Fragment implements OnRefreshLoadMore
|
||||
}
|
||||
|
||||
private void getData(int page) {
|
||||
MainManager.getHomeData((BaseActivity) getActivity(), mType, page, new HttpUiCallBack<ChannelAnchorBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, ChannelAnchorBean result, String message) {
|
||||
finishFresh();
|
||||
if (result != null) {
|
||||
|
||||
if (page == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
if (mPage == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
LookMeBean lookMeBean = new LookMeBean();
|
||||
lookMeBean.setId(i + "");
|
||||
lookMeBean.setAvatar_url("uploads/admin/202403/25/04cf409ab9148f11c0052bb254b5c155.jpg");
|
||||
mData.add(lookMeBean);
|
||||
AnchorListBean list1 = result.getList();
|
||||
if (list1 != null) {
|
||||
mTotalPage = list1.getTotal_page();
|
||||
List<AnchorBean> list = list1.getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
mAdapter.setList(mData);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, tip);
|
||||
}
|
||||
|
||||
finishFresh();
|
||||
mAdapter.setList(mData);
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void finishFresh() {
|
||||
@@ -82,7 +112,12 @@ public class MainThreeStarFragment extends Fragment implements OnRefreshLoadMore
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
getData(mPage);
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getData(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,14 +12,19 @@ import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.MainRecommendAdapter;
|
||||
import com.xuebiping.bolizhuzi.model.main.BannerBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.LookMeBean;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorListBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.ChannelAnchorBean;
|
||||
import com.xuebiping.bolizhuzi.utils.SPUtils;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -28,12 +33,15 @@ import java.util.List;
|
||||
|
||||
public class MainVoiceFragment extends Fragment implements OnRefreshLoadMoreListener {
|
||||
|
||||
private String mType = "voice";
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_list;
|
||||
private MainRecommendAdapter mAdapter;
|
||||
|
||||
private int mPage = 1;
|
||||
private List<LookMeBean> mData = new ArrayList<>();
|
||||
private int mTotalPage;
|
||||
private List<AnchorBean> mData = new ArrayList<>();
|
||||
private GridLayoutManager mGridLayoutManager;
|
||||
private LinearLayoutManager mLinearLayoutManager;
|
||||
|
||||
@@ -84,20 +92,42 @@ public class MainVoiceFragment extends Fragment implements OnRefreshLoadMoreList
|
||||
|
||||
private void getData(int page) {
|
||||
|
||||
if (page == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
MainManager.getHomeData((BaseActivity) getActivity(), mType, page, new HttpUiCallBack<ChannelAnchorBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, ChannelAnchorBean result, String message) {
|
||||
finishFresh();
|
||||
if (result != null) {
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
LookMeBean lookMeBean = new LookMeBean();
|
||||
lookMeBean.setId(i + "");
|
||||
lookMeBean.setAvatar_url("uploads/admin/202403/25/04cf409ab9148f11c0052bb254b5c155.jpg");
|
||||
mData.add(lookMeBean);
|
||||
if (mPage == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
|
||||
}
|
||||
AnchorListBean list1 = result.getList();
|
||||
if (list1 != null) {
|
||||
mTotalPage = list1.getTotal_page();
|
||||
List<AnchorBean> list = list1.getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
mAdapter.setList(mData);
|
||||
}
|
||||
}
|
||||
|
||||
finishFresh();
|
||||
mAdapter.setList(mData);
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, tip);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void finishFresh() {
|
||||
@@ -108,7 +138,12 @@ public class MainVoiceFragment extends Fragment implements OnRefreshLoadMoreList
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
getData(mPage);
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getData(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.xuebiping.bolizhuzi.view.main;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -14,16 +15,22 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.viewpager.widget.ViewPager;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.adapter.MainRecommendAdapter;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.AnchorListBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.BannerBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.LookMeBean;
|
||||
import com.xuebiping.bolizhuzi.model.main.ChannelAnchorBean;
|
||||
import com.xuebiping.bolizhuzi.utils.BaseUtils;
|
||||
import com.xuebiping.bolizhuzi.utils.GlideImageLoader;
|
||||
import com.xuebiping.bolizhuzi.utils.SPUtils;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
import com.xuebiping.bolizhuzi.view.main.utils.JumpUtils;
|
||||
import com.youth.banner.Banner;
|
||||
import com.youth.banner.listener.OnBannerListener;
|
||||
@@ -35,19 +42,23 @@ import java.util.List;
|
||||
|
||||
public class RecommendFragment2 extends Fragment implements OnRefreshLoadMoreListener {
|
||||
|
||||
private String mType = "new";
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_list;
|
||||
private Banner mBn_recommend;
|
||||
private MainRecommendAdapter mAdapter;
|
||||
|
||||
private int mPage = 1;
|
||||
private List<LookMeBean> mData = new ArrayList<>();
|
||||
private List<BannerBean> mData2 = new ArrayList<>();
|
||||
private int mTotalPage;
|
||||
private List<AnchorBean> mData = new ArrayList<>();
|
||||
private List<BannerBean> mBanner = new ArrayList<>();
|
||||
List<String> images = new ArrayList<>();
|
||||
private GridLayoutManager mGridLayoutManager;
|
||||
private LinearLayoutManager mLinearLayoutManager;
|
||||
private RelativeLayout mRl_banner;
|
||||
|
||||
|
||||
@Nullable
|
||||
@org.jetbrains.annotations.Nullable
|
||||
@Override
|
||||
@@ -96,41 +107,62 @@ public class RecommendFragment2 extends Fragment implements OnRefreshLoadMoreLis
|
||||
}
|
||||
|
||||
private void getData(int page) {
|
||||
MainManager.getHomeData((BaseActivity) getActivity(), mType, page, new HttpUiCallBack<ChannelAnchorBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, ChannelAnchorBean result, String message) {
|
||||
finishFresh();
|
||||
if (result != null) {
|
||||
|
||||
if (page == 1) {
|
||||
mData.clear();
|
||||
mData2.clear();
|
||||
}
|
||||
if (mPage == 1) {
|
||||
mBanner.clear();
|
||||
mBanner = result.getBanner();
|
||||
if (mBanner != null && mBanner.size() > 0) {
|
||||
mRl_banner.setVisibility(View.VISIBLE);
|
||||
banner(mBanner);
|
||||
}else {
|
||||
mRl_banner.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (i < 3 && page == 1) {
|
||||
BannerBean bannerBean = new BannerBean();
|
||||
bannerBean.setImage("https://img.boxinxinc.cn/images/banner/050ba52eec6c9211436bf82aecfd3f81.jpg");
|
||||
mData2.add(bannerBean);
|
||||
mData.clear();
|
||||
}
|
||||
|
||||
AnchorListBean list1 = result.getList();
|
||||
if (list1 != null) {
|
||||
mTotalPage = list1.getTotal_page();
|
||||
List<AnchorBean> list = list1.getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
mAdapter.setList(mData);
|
||||
}
|
||||
}
|
||||
|
||||
LookMeBean lookMeBean = new LookMeBean();
|
||||
lookMeBean.setId(i + "");
|
||||
lookMeBean.setAvatar_url("uploads/admin/202403/25/04cf409ab9148f11c0052bb254b5c155.jpg");
|
||||
mData.add(lookMeBean);
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, tip);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
finishFresh();
|
||||
if (page == 1) {
|
||||
banner(mData2);
|
||||
}
|
||||
mAdapter.setList(mData);
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
Log.d("nail", "onException: " + e);
|
||||
finishFresh();
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void banner(List<BannerBean> mBanners) {
|
||||
private void banner(List<BannerBean> banners) {
|
||||
|
||||
images.clear();
|
||||
if (null != mBanners) {
|
||||
if (mBanners.size() != 0) {
|
||||
for (int i = 0; i < mBanners.size(); i++) {
|
||||
if (null != banners) {
|
||||
if (banners.size() != 0) {
|
||||
for (int i = 0; i < banners.size(); i++) {
|
||||
// images.add(StrU.getResourcePath(mBanners.get(i).getImage(), mContext));
|
||||
images.add(mBanners.get(i).getImage());
|
||||
images.add(banners.get(i).getImage());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -141,12 +173,12 @@ public class RecommendFragment2 extends Fragment implements OnRefreshLoadMoreLis
|
||||
.setOnBannerListener(new OnBannerListener() {
|
||||
@Override
|
||||
public void OnBannerClick(int position) {
|
||||
if (null != mBanners) {
|
||||
int size = mBanners.size();
|
||||
if (null != banners) {
|
||||
int size = banners.size();
|
||||
if (size != 0) {
|
||||
int i = position % size;
|
||||
JumpUtils.jump(mBanners.get(i).getLink_type(),
|
||||
mBanners.get(i).getLink_url(), getActivity());
|
||||
JumpUtils.jump(banners.get(i).getLink_type(),
|
||||
banners.get(i).getLink_url(), getActivity());
|
||||
// mRv_list.setLayoutManager(mLinearLayoutManager);
|
||||
// mAdapter.notifyDataSetChanged();
|
||||
}
|
||||
@@ -186,7 +218,12 @@ public class RecommendFragment2 extends Fragment implements OnRefreshLoadMoreLis
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
getData(mPage);
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getData(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -17,6 +17,9 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.constant.Constant;
|
||||
import com.xuebiping.bolizhuzi.controller.user.manager.UserManager;
|
||||
import com.xuebiping.bolizhuzi.utils.NoClearSPUtils;
|
||||
|
||||
|
||||
public class ShaiXuanDialog extends Dialog implements View.OnClickListener {
|
||||
@@ -72,7 +75,16 @@ public class ShaiXuanDialog extends Dialog implements View.OnClickListener {
|
||||
tv_boy = findViewById(R.id.tv_boy);
|
||||
tv_girl = findViewById(R.id.tv_girl);
|
||||
|
||||
setTxtStyle(tv_all,tv_boy,tv_girl);
|
||||
int select = NoClearSPUtils.getInt(mContext, UserManager.getUserInfo().getUser_id() + Constant.FRIEND_SELECT, isSelect);
|
||||
if (select == 0) {
|
||||
setTxtStyle(tv_all,tv_boy,tv_girl);
|
||||
}else if (select == 1) {
|
||||
setTxtStyle(tv_boy,tv_all,tv_girl);
|
||||
}else if (select == 2) {
|
||||
setTxtStyle(tv_girl,tv_boy,tv_all);
|
||||
}
|
||||
|
||||
// setTxtStyle(tv_all,tv_boy,tv_girl);
|
||||
|
||||
ll_nm_video_call = findViewById(R.id.ll_nm_video_call);
|
||||
|
||||
@@ -111,7 +123,7 @@ public class ShaiXuanDialog extends Dialog implements View.OnClickListener {
|
||||
|
||||
public void setTxtStyle(TextView textView1,TextView textView2,TextView textView3){
|
||||
textView1.setTextColor(Color.parseColor("#ffffff"));
|
||||
textView1.setBackground(mContext.getResources().getDrawable(R.drawable.bg_fb65fd));
|
||||
textView1.setBackground(mContext.getResources().getDrawable(R.drawable.shape_button_enable));
|
||||
textView2.setTextColor(Color.parseColor("#999999"));
|
||||
textView2.setBackground(mContext.getResources().getDrawable(R.drawable.bg_999999_t10));
|
||||
textView3.setTextColor(Color.parseColor("#999999"));
|
||||
|
||||
@@ -87,12 +87,12 @@ public class BindPhoneActivity extends BaseActivity implements View.OnClickListe
|
||||
mBindWeiboView.setOnClickListener(this);
|
||||
rl_delete_account.setOnClickListener(this);//注销账号
|
||||
|
||||
if (UserManager.getUserInfo().isWomen()) {
|
||||
bind_certification.setVisibility(View.VISIBLE);
|
||||
getSelfieExample();
|
||||
} else {
|
||||
bind_certification.setVisibility(View.GONE);
|
||||
}
|
||||
// if (UserManager.getUserInfo().isWomen()) {
|
||||
// bind_certification.setVisibility(View.VISIBLE);
|
||||
// getSelfieExample();
|
||||
// } else {
|
||||
// bind_certification.setVisibility(View.GONE);
|
||||
// }
|
||||
}
|
||||
|
||||
private BindInfoBean mBindInfoBean;
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.xuebiping.bolizhuzi.view.settings;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.controller.settings.adapter.GenderActiveAdapter;
|
||||
import com.xuebiping.bolizhuzi.controller.user.manager.UserManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.UserGenderListBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.UserInfoBean;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class GenderActiveActivity extends BaseActivity implements OnRefreshLoadMoreListener {
|
||||
|
||||
private int mPage = 1;
|
||||
private int mTotalPage;
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_recommend_list;
|
||||
private LinearLayout mRl_no_data;
|
||||
private GenderActiveAdapter mGenderActiveAdapter;
|
||||
private List<UserInfoBean> mData = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_gender_activity);
|
||||
setTitleName("活跃");
|
||||
initView();
|
||||
getGenderUserInfo(mPage);
|
||||
}
|
||||
|
||||
private void initView() {
|
||||
mSmart_refresh = findViewById(R.id.smart_refresh);
|
||||
mRv_recommend_list = findViewById(R.id.rv_recommend_list);
|
||||
mRl_no_data = findViewById(R.id.rl_no_data);
|
||||
mRv_recommend_list.setLayoutManager(new LinearLayoutManager(this));
|
||||
mGenderActiveAdapter = new GenderActiveAdapter(R.layout.item_gender_active, this);
|
||||
mRv_recommend_list.setAdapter(mGenderActiveAdapter);
|
||||
|
||||
mSmart_refresh.setOnRefreshLoadMoreListener(this);
|
||||
}
|
||||
|
||||
public void getGenderUserInfo(int page){
|
||||
int gender = 1;
|
||||
if(UserManager.getUserInfo().getGender() == 1){
|
||||
gender = 2;
|
||||
}
|
||||
|
||||
MainManager.getGenderActiveList(this, gender, page, new HttpUiCallBack<UserGenderListBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, UserGenderListBean result, String message) {
|
||||
finishFresh();
|
||||
if (result.getList() != null) {
|
||||
mTotalPage = result.getList().getTotal_page();
|
||||
if (mPage == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
List<UserInfoBean> list = result.getList().getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
if (mPage == 1) {
|
||||
mRl_no_data.setVisibility(View.GONE);
|
||||
mRv_recommend_list.setVisibility(View.VISIBLE);
|
||||
}
|
||||
mGenderActiveAdapter.setList(mData);
|
||||
} else {
|
||||
if (mPage == 1) {
|
||||
mRl_no_data.setVisibility(View.VISIBLE);
|
||||
mRv_recommend_list.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
MaleToast.showMessage(activity, tip);
|
||||
finishFresh();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
finishFresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void finishFresh() {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.finishRefresh();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getGenderUserInfo(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRefresh(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage = 1;
|
||||
getGenderUserInfo(mPage);
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public class GeneralMemberFragment extends Fragment implements View.OnClickListe
|
||||
private int type = 0;
|
||||
|
||||
private List<MemberPrivilegesInfo> mPrivileges = new ArrayList<>();
|
||||
private Boolean isVip = false;
|
||||
|
||||
private String mSelectedPayMethod = "alipay"; //默认微信
|
||||
|
||||
private MemberPayDialog mPayDialog;
|
||||
@@ -183,17 +183,16 @@ public class GeneralMemberFragment extends Fragment implements View.OnClickListe
|
||||
|
||||
if (!TextUtils.isEmpty(result.getInfo().getExpire_date_new())) {
|
||||
tv_member_time.setText("有效期至:" + result.getInfo().getExpire_date_new());
|
||||
isVip = true;
|
||||
lin_member_bottom_btn.setVisibility(View.VISIBLE);
|
||||
tv_member_open.setVisibility(View.GONE);
|
||||
|
||||
SPUtils.saveBoolean(getActivity(), ConsUser.USER_VIP, true);
|
||||
} else {
|
||||
tv_member_time.setText("你还未开通VIP");
|
||||
isVip = false;
|
||||
lin_member_bottom_btn.setVisibility(View.GONE);
|
||||
tv_member_open.setVisibility(View.VISIBLE);
|
||||
tv_member_open.setText("立即开通");
|
||||
}
|
||||
// SPUtils.saveBoolean(getActivity(), ConsUser.USER_VIP, isVip);
|
||||
|
||||
if (SPUtils.getInt(getActivity(), ConsUser.GENDER) == 1) {
|
||||
lin_member_bottom_btn.setVisibility(View.GONE);
|
||||
@@ -203,24 +202,59 @@ public class GeneralMemberFragment extends Fragment implements View.OnClickListe
|
||||
|
||||
List<MemberInfoList> list = result.getInfo().getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
price1 = (int) Double.parseDouble(list.get(0).getPrice()) + list.get(0).getExpires_title();
|
||||
tv_vip_shift_name1.setText(list.get(0).getName());
|
||||
tv_vip_price1.setText((int) Double.parseDouble(list.get(0).getPrice()) + "");
|
||||
tv_vip_price_hint1.setText("原价¥" + list.get(0).getOrigin_price());
|
||||
|
||||
price2 = (int) Double.parseDouble(list.get(1).getPrice()) + list.get(1).getExpires_title();
|
||||
tv_vip_shift_name2.setText(list.get(1).getName());
|
||||
tv_vip_price2.setText((int) Double.parseDouble(list.get(1).getPrice()) + "");
|
||||
tv_vip_price_hint2.setText("原价¥" + list.get(1).getOrigin_price());
|
||||
if (list.size() == 1) {
|
||||
lin_vip_shift1.setVisibility(View.VISIBLE);
|
||||
lin_vip_shift2.setVisibility(View.GONE);
|
||||
lin_vip_shift3.setVisibility(View.GONE);
|
||||
|
||||
price3 = (int) Double.parseDouble(list.get(2).getPrice()) + list.get(2).getExpires_title();
|
||||
tv_vip_shift_name3.setText(list.get(2).getName());
|
||||
tv_vip_price3.setText((int) Double.parseDouble(list.get(2).getPrice()) + "");
|
||||
tv_vip_price_hint3.setText("原价¥" + list.get(2).getOrigin_price());
|
||||
price1 = (int) Double.parseDouble(list.get(0).getPrice()) + list.get(0).getExpires_title();
|
||||
tv_vip_shift_name1.setText(list.get(0).getName());
|
||||
tv_vip_price1.setText((int) Double.parseDouble(list.get(0).getPrice()) + "");
|
||||
tv_vip_price_hint1.setText("原价¥" + list.get(0).getOrigin_price());
|
||||
|
||||
goodsId1 = list.get(0).getId();
|
||||
goodsId2 = list.get(1).getId();
|
||||
goodsId3 = list.get(2).getId();
|
||||
goodsId1 = list.get(0).getId();
|
||||
}else if (list.size() == 2) {
|
||||
lin_vip_shift1.setVisibility(View.VISIBLE);
|
||||
lin_vip_shift2.setVisibility(View.VISIBLE);
|
||||
lin_vip_shift3.setVisibility(View.GONE);
|
||||
|
||||
price1 = (int) Double.parseDouble(list.get(0).getPrice()) + list.get(0).getExpires_title();
|
||||
tv_vip_shift_name1.setText(list.get(0).getName());
|
||||
tv_vip_price1.setText((int) Double.parseDouble(list.get(0).getPrice()) + "");
|
||||
tv_vip_price_hint1.setText("原价¥" + list.get(0).getOrigin_price());
|
||||
|
||||
price2 = (int) Double.parseDouble(list.get(1).getPrice()) + list.get(1).getExpires_title();
|
||||
tv_vip_shift_name2.setText(list.get(1).getName());
|
||||
tv_vip_price2.setText((int) Double.parseDouble(list.get(1).getPrice()) + "");
|
||||
tv_vip_price_hint2.setText("原价¥" + list.get(1).getOrigin_price());
|
||||
|
||||
goodsId1 = list.get(0).getId();
|
||||
goodsId2 = list.get(1).getId();
|
||||
}else {
|
||||
lin_vip_shift1.setVisibility(View.VISIBLE);
|
||||
lin_vip_shift2.setVisibility(View.VISIBLE);
|
||||
lin_vip_shift3.setVisibility(View.VISIBLE);
|
||||
|
||||
price1 = (int) Double.parseDouble(list.get(0).getPrice()) + list.get(0).getExpires_title();
|
||||
tv_vip_shift_name1.setText(list.get(0).getName());
|
||||
tv_vip_price1.setText((int) Double.parseDouble(list.get(0).getPrice()) + "");
|
||||
tv_vip_price_hint1.setText("原价¥" + list.get(0).getOrigin_price());
|
||||
|
||||
price2 = (int) Double.parseDouble(list.get(1).getPrice()) + list.get(1).getExpires_title();
|
||||
tv_vip_shift_name2.setText(list.get(1).getName());
|
||||
tv_vip_price2.setText((int) Double.parseDouble(list.get(1).getPrice()) + "");
|
||||
tv_vip_price_hint2.setText("原价¥" + list.get(1).getOrigin_price());
|
||||
|
||||
price3 = (int) Double.parseDouble(list.get(2).getPrice()) + list.get(2).getExpires_title();
|
||||
tv_vip_shift_name3.setText(list.get(2).getName());
|
||||
tv_vip_price3.setText((int) Double.parseDouble(list.get(2).getPrice()) + "");
|
||||
tv_vip_price_hint3.setText("原价¥" + list.get(2).getOrigin_price());
|
||||
|
||||
goodsId1 = list.get(0).getId();
|
||||
goodsId2 = list.get(1).getId();
|
||||
goodsId3 = list.get(2).getId();
|
||||
}
|
||||
}
|
||||
mAdapter.setVip_day_free_send(result.getInfo().getVip_day_free_send());
|
||||
}
|
||||
@@ -256,41 +290,41 @@ public class GeneralMemberFragment extends Fragment implements View.OnClickListe
|
||||
public void onClick(View v) {
|
||||
if (v == tv_member_setting) {
|
||||
Intent intent = new Intent(getContext(), PrivilegeSettingActivity.class);
|
||||
intent.putExtra("isVip", isVip);
|
||||
intent.putExtra("isVip", SPUtils.getBoolean(getActivity(), ConsUser.USER_VIP, false));
|
||||
startActivity(intent);
|
||||
} else if (v == lin_vip_shift1) {
|
||||
lin_vip_shift1.setBackgroundResource(R.drawable.vip_select_bg2);
|
||||
lin_vip_shift2.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift1.setBackgroundResource(R.mipmap.new_vip_select_bg2);
|
||||
lin_vip_shift2.setBackgroundResource(R.mipmap.new_vip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.mipmap.new_vip_select_bg1);
|
||||
defaultType = 0;
|
||||
if (goodsId1 == 1011) {
|
||||
List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
list.get(0).setDesc("半价无限畅聊");
|
||||
list.get(1).setDesc("每日可享1次免费视频,单次最长1分钟");
|
||||
mAdapter.setOptions(list);
|
||||
}
|
||||
// if (goodsId1 == 1011) {
|
||||
// List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
// list.get(0).setDesc("半价无限畅聊");
|
||||
// list.get(1).setDesc("每日可享1次免费视频,单次最长1分钟");
|
||||
// mAdapter.setOptions(list);
|
||||
// }
|
||||
} else if (v == lin_vip_shift2) {
|
||||
lin_vip_shift1.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.drawable.vip_select_bg2);
|
||||
lin_vip_shift3.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift1.setBackgroundResource(R.mipmap.new_vip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.mipmap.new_vip_select_bg2);
|
||||
lin_vip_shift3.setBackgroundResource(R.mipmap.new_vip_select_bg1);
|
||||
defaultType = 1;
|
||||
if (goodsId2 == 1012) {
|
||||
List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
list.get(0).setDesc("半价无限畅聊");
|
||||
list.get(1).setDesc("每日可享2次免费视频,单次最长1分钟");
|
||||
mAdapter.setOptions(list);
|
||||
}
|
||||
// if (goodsId2 == 1012) {
|
||||
// List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
// list.get(0).setDesc("半价无限畅聊");
|
||||
// list.get(1).setDesc("每日可享2次免费视频,单次最长1分钟");
|
||||
// mAdapter.setOptions(list);
|
||||
// }
|
||||
} else if (v == lin_vip_shift3) {
|
||||
lin_vip_shift1.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.drawable.vip_select_bg2);
|
||||
lin_vip_shift1.setBackgroundResource(R.mipmap.new_vip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.mipmap.new_vip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.mipmap.new_vip_select_bg2);
|
||||
defaultType = 2;
|
||||
if (goodsId3 == 1013) {
|
||||
List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
list.get(0).setDesc("尊享无限文字畅聊");
|
||||
list.get(1).setDesc("每日可享3次免费视频,单次最长1分钟");
|
||||
mAdapter.setOptions(list);
|
||||
}
|
||||
// if (goodsId3 == 1013) {
|
||||
// List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
// list.get(0).setDesc("尊享无限文字畅聊");
|
||||
// list.get(1).setDesc("每日可享3次免费视频,单次最长1分钟");
|
||||
// mAdapter.setOptions(list);
|
||||
// }
|
||||
} else if (v == tv_member_sure) {
|
||||
if (defaultType == 1) {
|
||||
goodsId = goodsId2;
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.xuebiping.bolizhuzi.view.settings;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.fengliyan.uikit.toast.MaleToast;
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.main.manager.MainManager;
|
||||
import com.xuebiping.bolizhuzi.controller.settings.adapter.GenderActiveAdapter;
|
||||
import com.xuebiping.bolizhuzi.controller.settings.adapter.IntimacyAdapter;
|
||||
import com.xuebiping.bolizhuzi.controller.settings.manager.SettingManager;
|
||||
import com.xuebiping.bolizhuzi.controller.user.manager.UserManager;
|
||||
import com.xuebiping.bolizhuzi.model.main.UserGenderListBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.IntimacyBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.IntimacyListBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.UserInfoBean;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
import com.xuebiping.bolizhuzi.view.base.utils.HttpUiCallBack;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class IntimacyListActivity extends BaseActivity implements OnRefreshLoadMoreListener {
|
||||
|
||||
private int mPage = 1;
|
||||
private int mTotalPage;
|
||||
|
||||
private SmartRefreshLayout mSmart_refresh;
|
||||
private RecyclerView mRv_recommend_list;
|
||||
private LinearLayout mRl_no_data;
|
||||
private IntimacyAdapter mAdapter;
|
||||
private List<IntimacyBean> mData = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_intimacy);
|
||||
setTitleName("我的亲密度");
|
||||
initView();
|
||||
getIntimacyList(mPage);
|
||||
}
|
||||
|
||||
private void initView() {
|
||||
mSmart_refresh = findViewById(R.id.smart_refresh);
|
||||
mRv_recommend_list = findViewById(R.id.rv_recommend_list);
|
||||
mRl_no_data = findViewById(R.id.rl_no_data);
|
||||
mRv_recommend_list.setLayoutManager(new LinearLayoutManager(this));
|
||||
mAdapter = new IntimacyAdapter(R.layout.item_intimacy_list, this);
|
||||
mRv_recommend_list.setAdapter(mAdapter);
|
||||
|
||||
mSmart_refresh.setOnRefreshLoadMoreListener(this);
|
||||
}
|
||||
|
||||
public void getIntimacyList(int page){
|
||||
|
||||
SettingManager.getIntimacyList(this, page, new HttpUiCallBack<IntimacyListBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, IntimacyListBean result, String message) {
|
||||
finishFresh();
|
||||
if (result.getList() != null) {
|
||||
mTotalPage = result.getTotal_page();
|
||||
if (mPage == 1) {
|
||||
mData.clear();
|
||||
}
|
||||
List<IntimacyBean> list = result.getList();
|
||||
if (list != null && list.size() > 0) {
|
||||
mData.addAll(list);
|
||||
}
|
||||
}
|
||||
if (mData != null && mData.size() > 0) {
|
||||
if (mPage == 1) {
|
||||
mRl_no_data.setVisibility(View.GONE);
|
||||
mRv_recommend_list.setVisibility(View.VISIBLE);
|
||||
}
|
||||
mAdapter.setList(mData);
|
||||
} else {
|
||||
if (mPage == 1) {
|
||||
mRl_no_data.setVisibility(View.VISIBLE);
|
||||
mRv_recommend_list.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
MaleToast.showMessage(activity, tip);
|
||||
finishFresh();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
MaleToast.showFailureMsg(activity, "请重试");
|
||||
finishFresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void finishFresh() {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.finishRefresh();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoadMore(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage++;
|
||||
if (mPage > mTotalPage) {
|
||||
mSmart_refresh.finishLoadMore();
|
||||
mSmart_refresh.setNoMoreData(true);
|
||||
} else {
|
||||
getIntimacyList(mPage);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRefresh(@NonNull @NotNull RefreshLayout refreshLayout) {
|
||||
mPage = 1;
|
||||
getIntimacyList(mPage);
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,7 @@ import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||
import com.xuebiping.bolizhuzi.R;
|
||||
import com.xuebiping.bolizhuzi.controller.constant.ConsUser;
|
||||
import com.xuebiping.bolizhuzi.controller.constant.ConstUrl;
|
||||
import com.xuebiping.bolizhuzi.controller.constant.Constant;
|
||||
import com.xuebiping.bolizhuzi.controller.eventBus.BeAnchorEvent;
|
||||
import com.xuebiping.bolizhuzi.controller.eventBus.RegisterInfoEvent;
|
||||
import com.xuebiping.bolizhuzi.controller.eventBus.SocialToSettingEvent;
|
||||
@@ -49,6 +50,7 @@ import com.xuebiping.bolizhuzi.model.settings.UserFrameBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.UserHomeBean;
|
||||
import com.xuebiping.bolizhuzi.model.settings.WalletIndexBean;
|
||||
import com.xuebiping.bolizhuzi.model.user.bean.BaseUserInfo;
|
||||
import com.xuebiping.bolizhuzi.utils.NoClearSPUtils;
|
||||
import com.xuebiping.bolizhuzi.utils.SPUtils;
|
||||
import com.xuebiping.bolizhuzi.utils.StrU;
|
||||
import com.xuebiping.bolizhuzi.view.base.BaseActivity;
|
||||
@@ -128,6 +130,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
private LinearLayout ll_go_edit_layout;
|
||||
private String mUsercode;
|
||||
private TextView mTv_go_open;
|
||||
private int mDo_not_disturb;
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
@@ -313,20 +316,22 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
rtv_new_scan_num.setVisibility(View.GONE);
|
||||
}
|
||||
tv_foot_num.setText(result.getUsercount().getFootprint_count());
|
||||
if (result.getSwitchX() != null) {
|
||||
mVideoEnableFlag = result.getSwitchX().getOpen_video_status();
|
||||
}
|
||||
// if (result.getSwitchX() != null) {
|
||||
// mVideoEnableFlag = result.getSwitchX().getOpen_video_status();
|
||||
// }
|
||||
mDo_not_disturb = result.getUserinfo().getDo_not_disturb();
|
||||
mOptions1.clear();
|
||||
|
||||
mOptions1.add(SettingOptions.RANK);
|
||||
mOptions1.add(SettingOptions.DONOTMODEL);
|
||||
mOptions1.add(SettingOptions.MEMBER);
|
||||
mOptions1.add(SettingOptions.SETFRIEND);
|
||||
// mOptions1.add(SettingOptions.SETFRIEND);
|
||||
mOptions1.add(SettingOptions.WALLET);
|
||||
mOptions1.add(SettingOptions.TASK);
|
||||
mOptions1.add(SettingOptions.MYMYINTIMACY);
|
||||
mOptions1.add(SettingOptions.UPAUTH);
|
||||
mOptions1.add(SettingOptions.CUSTOMER);
|
||||
mOptions1.add(SettingOptions.BEAUTY);
|
||||
mOptions1.add(SettingOptions.SETTING);
|
||||
addOption(mOptions1, lin_my_list1);
|
||||
|
||||
@@ -432,27 +437,62 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
});
|
||||
}
|
||||
|
||||
private void changeVideoStatus() {
|
||||
MainManager.changeVideoStatus((BaseActivity) getActivity(),
|
||||
(mVideoEnableFlag == 1 ? 0 : 1), new HttpUiCallBack<MainPageAnchorBean>() {
|
||||
private void changeVideoStatus2(Switch mSwitch) {
|
||||
MainManager.changeVideoStatus2((BaseActivity) getActivity(),
|
||||
(mDo_not_disturb == 1 ? 0 : 1), new HttpUiCallBack<MainPageAnchorBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, MainPageAnchorBean result, String message) {
|
||||
mVideoEnableFlag = result.getOpen_video_status();
|
||||
mDo_not_disturb = result.getDo_not_disturb();
|
||||
|
||||
if (mDo_not_disturb == 1) { //已开启勿扰模式
|
||||
MaleToast.showMessage(activity, "勿扰模式开启成功");
|
||||
}else {
|
||||
MaleToast.showMessage(activity, "勿扰模式关闭成功");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(BaseActivity activity, String tip) {
|
||||
MaleToast.showMessage(activity, tip);
|
||||
|
||||
if (mDo_not_disturb == 1) { //已开启勿扰模式
|
||||
mSwitch.setChecked(true);
|
||||
}else {
|
||||
mSwitch.setChecked(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onException(BaseActivity activity, Throwable e) {
|
||||
|
||||
if (mDo_not_disturb == 1) { //已开启勿扰模式
|
||||
mSwitch.setChecked(true);
|
||||
}else {
|
||||
mSwitch.setChecked(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// private void changeVideoStatus() {
|
||||
// MainManager.changeVideoStatus((BaseActivity) getActivity(),
|
||||
// (mVideoEnableFlag == 1 ? 0 : 1), new HttpUiCallBack<MainPageAnchorBean>() {
|
||||
// @Override
|
||||
// public void onSuccess(BaseActivity activity, MainPageAnchorBean result, String message) {
|
||||
// mVideoEnableFlag = result.getOpen_video_status();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onFailure(BaseActivity activity, String tip) {
|
||||
// MaleToast.showMessage(activity, tip);
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onException(BaseActivity activity, Throwable e) {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
private void showSVGA(String effect) {
|
||||
SVGAParser mSVGAParser = SVGAParser.Companion.shareParser();
|
||||
mSVGAParser.init(requireActivity());
|
||||
@@ -553,7 +593,8 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
}
|
||||
break;
|
||||
case R.id.ll_mine_video_chat:
|
||||
MaleToast.showMessage(getActivity(),"我的视频,暂定");
|
||||
intent = new Intent(getActivity(), GenderActiveActivity.class);
|
||||
startActivity(intent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -604,6 +645,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
TextView mName = view.findViewById(R.id.setting_option_name);
|
||||
ImageView mArrow = view.findViewById(R.id.iv_option_arrow);
|
||||
TextView mHint = view.findViewById(R.id.tv_option_hint);
|
||||
TextView tv_option_hint2 = view.findViewById(R.id.tv_option_hint2);
|
||||
Switch mSwitch = view.findViewById(R.id.st_option_switch);
|
||||
SettingOptions options = list.get(i);
|
||||
switch (options) {
|
||||
@@ -611,14 +653,16 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
mSwitch.setChecked(mVideoEnableFlag == 1);
|
||||
mSwitch.setVisibility(View.VISIBLE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.GONE);
|
||||
mLogo.setImageResource(R.mipmap.icon_my_video);
|
||||
mName.setText("视频聊天");
|
||||
mSwitch.setOnClickListener(v -> changeVideoStatus());
|
||||
// mSwitch.setOnClickListener(v -> changeVideoStatus2());
|
||||
break;
|
||||
case CONTRACT:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.drawable.ic_my_certified);
|
||||
mName.setText("价格设置");
|
||||
@@ -630,6 +674,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case GUIDE:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.drawable.ic_my_guide);
|
||||
mName.setText("用户指南");
|
||||
@@ -656,29 +701,10 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
case BEAUTY:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
if (gender == 2) {
|
||||
mLogo.setImageResource(R.drawable.ic_my_beauty);
|
||||
} else {
|
||||
mLogo.setImageResource(R.drawable.ic_my_beauty1);
|
||||
}
|
||||
mName.setText("美颜设置");
|
||||
view.setOnClickListener(view17 -> {
|
||||
if (!BaseApplication.getInstance().showCertificationDialog(getActivity())) {
|
||||
Intent intent = new Intent(getActivity(), BeautySettingActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
|
||||
case GODDESSPRIVILEGE:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_my_ntequan);
|
||||
mName.setText("up主认证");
|
||||
@@ -691,6 +717,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case VIOLATION:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_wd_weigui);
|
||||
mName.setText("违规公布");
|
||||
@@ -705,6 +732,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case ADDWECHAT:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_wd_addwechat);
|
||||
mName.setText("微信设置");
|
||||
@@ -718,6 +746,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case HELLOW:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_wd_hellow_set);
|
||||
mName.setText("招呼设置");
|
||||
@@ -730,6 +759,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case ITEMS:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_wd_items1);
|
||||
mName.setText("红包卡券");
|
||||
@@ -743,6 +773,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case RANK:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_wd_rank);
|
||||
mName.setText("排行榜");
|
||||
@@ -755,11 +786,12 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case DONOTMODEL:
|
||||
mSwitch.setVisibility(View.VISIBLE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.VISIBLE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_do_not_model);
|
||||
mName.setText("勿扰模式");
|
||||
|
||||
if (mVideoEnableFlag == 1) { //已开启勿扰模式
|
||||
if (mDo_not_disturb == 1) { //已开启勿扰模式
|
||||
mSwitch.setChecked(true);
|
||||
}else {
|
||||
mSwitch.setChecked(false);
|
||||
@@ -768,7 +800,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
mSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
|
||||
changeVideoStatus();
|
||||
changeVideoStatus2(mSwitch);
|
||||
}
|
||||
});
|
||||
break;
|
||||
@@ -776,11 +808,12 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_my_vip);
|
||||
if (gender == 2) {
|
||||
mHint.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
mHint.setVisibility(View.GONE);
|
||||
}
|
||||
mHint.setVisibility(View.GONE);
|
||||
// if (gender == 2) {
|
||||
// mHint.setVisibility(View.VISIBLE);
|
||||
// } else {
|
||||
// mHint.setVisibility(View.GONE);
|
||||
// }
|
||||
mName.setText("会员权限");
|
||||
view.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(getActivity(), PrivilegeSettingActivity.class);
|
||||
@@ -791,6 +824,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case SETFRIEND:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_set_friend);
|
||||
mName.setText("交友偏好");
|
||||
@@ -800,7 +834,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
shaiXuanDialog.setRightOnClickListener(new ShaiXuanDialog.OnDialogRightClickListener() {
|
||||
@Override
|
||||
public void rightClick(int isSelect) {
|
||||
ToastHelper.showToast(getContext(),"选择了 " + isSelect);
|
||||
NoClearSPUtils.saveInt(getActivity(), UserManager.getUserInfo().getUser_id() + Constant.FRIEND_SELECT, isSelect);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -808,6 +842,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case WALLET:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_wallet);
|
||||
mName.setText("我的钱包");
|
||||
@@ -819,6 +854,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case TASK:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_task_mine);
|
||||
mName.setText("任务中心");
|
||||
@@ -830,16 +866,18 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case MYMYINTIMACY:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_my_intimacy);
|
||||
mName.setText("我的亲密度");
|
||||
view.setOnClickListener(view16 -> {
|
||||
MaleToast.showMessage(getActivity(),"我的亲密度");
|
||||
startActivity(new Intent(getActivity(), IntimacyListActivity.class));
|
||||
});
|
||||
break;
|
||||
case UPAUTH:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_my_ntequan);
|
||||
mName.setText("up主认证");
|
||||
@@ -850,6 +888,7 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
case CUSTOMER:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_my_service);
|
||||
mName.setText("在线客服");
|
||||
@@ -857,9 +896,22 @@ public class SettingFragment2 extends Fragment implements View.OnClickListener {
|
||||
NimUIKit.startP2PSession(getActivity(), "4");
|
||||
});
|
||||
break;
|
||||
case BEAUTY:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_set_friend);
|
||||
mName.setText("美颜设置");
|
||||
view.setOnClickListener(view17 -> {
|
||||
Intent intent = new Intent(getActivity(), BeautySettingActivity.class);
|
||||
startActivity(intent);
|
||||
});
|
||||
break;
|
||||
case SETTING:
|
||||
mSwitch.setVisibility(View.GONE);
|
||||
mHint.setVisibility(View.GONE);
|
||||
tv_option_hint2.setVisibility(View.GONE);
|
||||
mArrow.setVisibility(View.VISIBLE);
|
||||
mLogo.setImageResource(R.mipmap.ic_my_setting_new);
|
||||
mName.setText("系统设置");
|
||||
|
||||
@@ -76,7 +76,7 @@ public class SuperMember2Fragment extends Fragment implements View.OnClickListen
|
||||
private int type = 1;
|
||||
|
||||
private List<MemberPrivilegesInfo> mPrivileges = new ArrayList<>();
|
||||
private Boolean isVip = false;
|
||||
|
||||
private String mSelectedPayMethod = "alipay"; //默认微信
|
||||
|
||||
private MemberPayDialog mPayDialog;
|
||||
@@ -178,17 +178,16 @@ public class SuperMember2Fragment extends Fragment implements View.OnClickListen
|
||||
|
||||
if (!TextUtils.isEmpty(result.getInfo().getExpire_date_new())) {
|
||||
tv_member_time.setText("有效期至:" + result.getInfo().getExpire_date_new());
|
||||
isVip = true;
|
||||
lin_member_bottom_btn.setVisibility(View.VISIBLE);
|
||||
tv_member_open.setVisibility(View.GONE);
|
||||
|
||||
SPUtils.saveBoolean(getActivity(), ConsUser.USER_VIP, true);
|
||||
} else {
|
||||
tv_member_time.setText("你还未开通SVIP");
|
||||
isVip = false;
|
||||
lin_member_bottom_btn.setVisibility(View.GONE);
|
||||
tv_member_open.setVisibility(View.VISIBLE);
|
||||
tv_member_open.setText("立即开通");
|
||||
}
|
||||
// SPUtils.saveBoolean(getActivity(), ConsUser.USER_VIP, isVip);
|
||||
|
||||
if (SPUtils.getInt(getActivity(), ConsUser.GENDER) == 1) {
|
||||
lin_member_bottom_btn.setVisibility(View.GONE);
|
||||
@@ -290,41 +289,41 @@ public class SuperMember2Fragment extends Fragment implements View.OnClickListen
|
||||
public void onClick(View v) {
|
||||
if (v == tv_member_setting) {
|
||||
Intent intent = new Intent(getContext(), PrivilegeSettingActivity.class);
|
||||
intent.putExtra("isVip", isVip);
|
||||
intent.putExtra("isVip", SPUtils.getBoolean(getActivity(), ConsUser.USER_VIP, false));
|
||||
startActivity(intent);
|
||||
} else if (v == lin_vip_shift1) {
|
||||
lin_vip_shift1.setBackgroundResource(R.drawable.vip_select_bg2);
|
||||
lin_vip_shift2.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift1.setBackgroundResource(R.mipmap.svip_select_bg2);
|
||||
lin_vip_shift2.setBackgroundResource(R.mipmap.svip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.mipmap.svip_select_bg1);
|
||||
defaultType = 0;
|
||||
if (goodsId1 == 1011) {
|
||||
List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
list.get(0).setDesc("半价无限畅聊");
|
||||
list.get(1).setDesc("每日可享1次免费视频,单次最长1分钟");
|
||||
mAdapter.setOptions(list);
|
||||
}
|
||||
// if (goodsId1 == 1011) {
|
||||
// List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
// list.get(0).setDesc("半价无限畅聊");
|
||||
// list.get(1).setDesc("每日可享1次免费视频,单次最长1分钟");
|
||||
// mAdapter.setOptions(list);
|
||||
// }
|
||||
} else if (v == lin_vip_shift2) {
|
||||
lin_vip_shift1.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.drawable.vip_select_bg2);
|
||||
lin_vip_shift3.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift1.setBackgroundResource(R.mipmap.svip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.mipmap.svip_select_bg2);
|
||||
lin_vip_shift3.setBackgroundResource(R.mipmap.svip_select_bg1);
|
||||
defaultType = 1;
|
||||
if (goodsId2 == 1012) {
|
||||
List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
list.get(0).setDesc("半价无限畅聊");
|
||||
list.get(1).setDesc("每日可享2次免费视频,单次最长1分钟");
|
||||
mAdapter.setOptions(list);
|
||||
}
|
||||
// if (goodsId2 == 1012) {
|
||||
// List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
// list.get(0).setDesc("半价无限畅聊");
|
||||
// list.get(1).setDesc("每日可享2次免费视频,单次最长1分钟");
|
||||
// mAdapter.setOptions(list);
|
||||
// }
|
||||
} else if (v == lin_vip_shift3) {
|
||||
lin_vip_shift1.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.drawable.vip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.drawable.vip_select_bg2);
|
||||
lin_vip_shift1.setBackgroundResource(R.mipmap.svip_select_bg1);
|
||||
lin_vip_shift2.setBackgroundResource(R.mipmap.svip_select_bg1);
|
||||
lin_vip_shift3.setBackgroundResource(R.mipmap.svip_select_bg2);
|
||||
defaultType = 2;
|
||||
if (goodsId3 == 1013) {
|
||||
List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
list.get(0).setDesc("尊享无限文字畅聊");
|
||||
list.get(1).setDesc("每日可享3次免费视频,单次最长1分钟");
|
||||
mAdapter.setOptions(list);
|
||||
}
|
||||
// if (goodsId3 == 1013) {
|
||||
// List<MemberPrivilegesInfo> list = mAdapter.getmOptions();
|
||||
// list.get(0).setDesc("尊享无限文字畅聊");
|
||||
// list.get(1).setDesc("每日可享3次免费视频,单次最长1分钟");
|
||||
// mAdapter.setOptions(list);
|
||||
// }
|
||||
} else if (v == tv_member_sure) {
|
||||
if (defaultType == 1) {
|
||||
goodsId = goodsId2;
|
||||
@@ -364,7 +363,7 @@ public class SuperMember2Fragment extends Fragment implements View.OnClickListen
|
||||
SettingManager.payConfig((BaseActivity) getActivity(), new HttpUiCallBack<PayConfigBean>() {
|
||||
@Override
|
||||
public void onSuccess(BaseActivity activity, PayConfigBean result, String tips) {
|
||||
mPayDialog = new MemberPayDialog(getActivity(), result, "VIP " + price);
|
||||
mPayDialog = new MemberPayDialog(getActivity(), result, "SVIP " + price);
|
||||
mPayDialog.setOnClickPayListener(new MemberPayDialog.OnClickPayListener() {
|
||||
@Override
|
||||
public void onClickPayListener(String selectedPayMethod) {
|
||||
|
||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 147 KiB |
@@ -3,7 +3,5 @@
|
||||
android:shape="oval">
|
||||
|
||||
<solid android:color="#6CE4B7"/>
|
||||
<size android:height="@dimen/dp8" android:width="@dimen/dp8"/>
|
||||
<stroke android:width="@dimen/dp1" android:color="@color/white"/>
|
||||
|
||||
</shape>
|
||||
7
app/src/main/res/drawable/shape_999999_oval_bg.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<solid android:color="#999999"/>
|
||||
|
||||
</shape>
|
||||
7
app/src/main/res/drawable/shape_f2b854_oval_bg.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<solid android:color="#F2B854"/>
|
||||
|
||||
</shape>
|
||||
@@ -1,9 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="#EE7874"
|
||||
android:startColor="#F3C89B" />
|
||||
<!-- <gradient-->
|
||||
<!-- android:angle="270"-->
|
||||
<!-- android:endColor="#EE7874"-->
|
||||
<!-- android:startColor="#F3C89B" />-->
|
||||
<solid android:color="@color/yellow_ffd33e"/>
|
||||
<corners android:radius="10dp" />
|
||||
</shape>
|
||||
@@ -184,6 +184,7 @@
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/bind_certification"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
@@ -226,6 +227,7 @@
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/bind_phone_confirm_weixin"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
@@ -268,6 +270,7 @@
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/bind_phone_confirm_qq"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
|
||||
74
app/src/main/res/layout/activity_gender_activity.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?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:orientation="vertical"
|
||||
tools:viewBindingIgnore="true">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_content_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/smart_refresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="visible">
|
||||
|
||||
<com.scwang.smartrefresh.layout.header.ClassicsHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:srlEnableLastTime="false" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/rl_no_data"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="@dimen/dp100"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp150"
|
||||
android:layout_height="@dimen/dp88"
|
||||
android:src="@mipmap/icon_img_no_black" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:text="暂无数据"
|
||||
android:textColor="@color/three_text"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_recommend_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<com.scwang.smartrefresh.layout.footer.ClassicsFooter
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
74
app/src/main/res/layout/activity_intimacy.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?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:orientation="vertical"
|
||||
tools:viewBindingIgnore="true">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_content_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/smart_refresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="visible">
|
||||
|
||||
<com.scwang.smartrefresh.layout.header.ClassicsHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:srlEnableLastTime="false" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/rl_no_data"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="@dimen/dp100"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp150"
|
||||
android:layout_height="@dimen/dp88"
|
||||
android:src="@mipmap/icon_img_no_black" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:text="暂无数据"
|
||||
android:textColor="@color/three_text"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_recommend_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<com.scwang.smartrefresh.layout.footer.ClassicsFooter
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -396,7 +396,7 @@
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/open_vip_btn"
|
||||
android:background="@drawable/shape_button_enable"
|
||||
android:gravity="center"
|
||||
android:text="开通会员"
|
||||
android:textColor="@color/white"
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_weight="1"
|
||||
android:text="特权"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="#814D1A"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
android:layout_height="16dp"
|
||||
android:scaleType="fitXY"
|
||||
app:roundAsCircle="true"
|
||||
app:roundingBorderColor="@color/white"
|
||||
app:roundingBorderColor="#814D1A"
|
||||
app:roundingBorderWidth="2dp" />
|
||||
|
||||
<TextView
|
||||
@@ -76,7 +76,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:text="你还未开通VIP"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="#814D1A"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
@@ -87,7 +87,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="聊天倾诉,一路陪伴美好时光"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="@color/one_text"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
@@ -134,7 +134,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/vip_select_bg2"
|
||||
android:background="@mipmap/new_vip_select_bg2"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="¥"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<TextView
|
||||
@@ -174,7 +174,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="18"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
@@ -185,7 +185,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="¥38"
|
||||
android:textColor="#80FFFFFF"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -200,7 +200,7 @@
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/vip_select_bg1"
|
||||
android:background="@mipmap/new_vip_select_bg1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -232,7 +232,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="¥"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<TextView
|
||||
@@ -240,7 +240,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="128"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
@@ -251,7 +251,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="¥228"
|
||||
android:textColor="#80FFFFFF"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -273,7 +273,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/vip_select_bg1"
|
||||
android:background="@mipmap/new_vip_select_bg1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -305,7 +305,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="¥"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<TextView
|
||||
@@ -313,7 +313,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="18"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
@@ -324,7 +324,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="¥38"
|
||||
android:textColor="#80FFFFFF"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
android:layout_height="@dimen/dp48">
|
||||
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/ll_select"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -37,6 +38,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<net.lucode.hackware.magicindicator.MagicIndicator
|
||||
android:layout_marginLeft="6dp"
|
||||
android:id="@+id/magic_indicator"
|
||||
android:layout_width="1000dp"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginLeft="@dimen/dp5"
|
||||
android:layout_marginRight="@dimen/dp5"
|
||||
android:layout_marginBottom="@dimen/dp10" />
|
||||
android:layout_marginBottom="@dimen/dp50" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginLeft="@dimen/dp5"
|
||||
android:layout_marginRight="@dimen/dp5"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp50"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/ic_vip_tag" />
|
||||
android:src="@mipmap/ic_svip_tag" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -134,7 +134,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/vip_select_bg2"
|
||||
android:background="@mipmap/svip_select_bg2"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="¥"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<TextView
|
||||
@@ -174,7 +174,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="18"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
@@ -185,7 +185,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="¥38"
|
||||
android:textColor="#80FFFFFF"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -200,7 +200,7 @@
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/vip_select_bg1"
|
||||
android:background="@mipmap/svip_select_bg1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -232,7 +232,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="¥"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<TextView
|
||||
@@ -240,7 +240,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="128"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
@@ -251,7 +251,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="¥228"
|
||||
android:textColor="#80FFFFFF"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -273,7 +273,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/vip_select_bg1"
|
||||
android:background="@mipmap/svip_select_bg1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -305,7 +305,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="¥"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<TextView
|
||||
@@ -313,7 +313,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="18"
|
||||
android:textColor="#F9C644"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
@@ -324,7 +324,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="¥38"
|
||||
android:textColor="#80FFFFFF"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12dp"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
106
app/src/main/res/layout/item_gender_active.xml
Normal file
@@ -0,0 +1,106 @@
|
||||
<?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:id="@+id/lin_gender_item"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/transparent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.flyco.roundview.RoundRelativeLayout
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dp20"
|
||||
android:clipChildren="false"
|
||||
android:paddingVertical="@dimen/dp16"
|
||||
app:rv_backgroundColor="@color/white"
|
||||
app:rv_cornerRadius="10dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_user_head"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_width="@dimen/dp50"
|
||||
android:layout_height="@dimen/dp50">
|
||||
|
||||
<com.facebook.drawee.view.SimpleDraweeView
|
||||
android:id="@+id/user_head"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:roundAsCircle="true" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_online_status"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:background="@drawable/shape_999999_oval_bg"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toEndOf="@+id/rl_user_head"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nick_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="10dp"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/one_text"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold"
|
||||
tools:text="小可爱" />
|
||||
|
||||
<ImageView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/iv_member_sign"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="@dimen/dp8"
|
||||
android:src="@drawable/ic_pvip" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_user_info"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="哈哈哈哈"
|
||||
android:textColor="@color/two_text"
|
||||
android:textSize="12dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/iv_luck_hi"
|
||||
android:layout_width="@dimen/dp60"
|
||||
android:layout_height="@dimen/dp30"
|
||||
android:textSize="@dimen/dp12"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="@dimen/dp15"
|
||||
android:gravity="center"
|
||||
android:textColor="#E472ED"
|
||||
android:background="@drawable/shape_button_e472ed_border"
|
||||
android:text="聊一聊"/>
|
||||
|
||||
</com.flyco.roundview.RoundRelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -89,12 +89,14 @@
|
||||
android:layout_height="@dimen/dp20">
|
||||
|
||||
<View
|
||||
android:id="@+id/view_online_status"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@drawable/bg_online_round"
|
||||
android:background="@drawable/shape_6ce4b7_oval_bg"
|
||||
android:layout_width="@dimen/dp8"
|
||||
android:layout_height="@dimen/dp8"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_online_status"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="@dimen/dp4"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -116,14 +118,62 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:layout_marginBottom="@dimen/dp8"
|
||||
android:id="@+id/ll_star2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_star_12"
|
||||
android:layout_width="@dimen/dp14"
|
||||
android:layout_height="@dimen/dp14"
|
||||
android:src="@mipmap/ic_main_star" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_star_22"
|
||||
android:layout_width="@dimen/dp14"
|
||||
android:layout_height="@dimen/dp14"
|
||||
android:layout_marginLeft="@dimen/dp4"
|
||||
android:src="@mipmap/ic_main_star" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_star_32"
|
||||
android:layout_width="@dimen/dp14"
|
||||
android:layout_height="@dimen/dp14"
|
||||
android:layout_marginLeft="@dimen/dp4"
|
||||
android:src="@mipmap/ic_main_star" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_star_42"
|
||||
android:layout_width="@dimen/dp14"
|
||||
android:layout_height="@dimen/dp14"
|
||||
android:layout_marginLeft="@dimen/dp4"
|
||||
android:src="@mipmap/ic_main_star" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_star_52"
|
||||
android:layout_width="@dimen/dp14"
|
||||
android:layout_height="@dimen/dp14"
|
||||
android:layout_marginLeft="@dimen/dp4"
|
||||
android:src="@mipmap/ic_main_star" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_centerVertical="true"
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxEms="5"
|
||||
android:maxLines="1"
|
||||
android:text="佳茵ovo"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
@@ -134,7 +184,7 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp18"
|
||||
android:layout_height="@dimen/dp16"
|
||||
android:background="@drawable/bg_svip_chat_price">
|
||||
|
||||
<TextView
|
||||
@@ -147,6 +197,7 @@
|
||||
android:textColor="#F5ECCC"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_member_price"
|
||||
android:layout_marginRight="@dimen/dp6"
|
||||
android:layout_marginLeft="@dimen/dp4"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -156,6 +207,37 @@
|
||||
android:textSize="@dimen/dp8"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/ll_svip_price2"
|
||||
android:layout_alignParentRight="true"
|
||||
android:gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp28"
|
||||
android:background="@drawable/bg_svip_chat_price">
|
||||
|
||||
<TextView
|
||||
android:layout_marginLeft="@dimen/dp6"
|
||||
android:textSize="@dimen/dp12"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="SVIP"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#F5ECCC"/>
|
||||
|
||||
<TextView
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/tv_member_price2"
|
||||
android:layout_marginRight="@dimen/dp6"
|
||||
android:layout_marginLeft="@dimen/dp32"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="140金币/分"
|
||||
android:textColor="#fff5eccc"
|
||||
android:textSize="@dimen/dp12"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
@@ -164,6 +246,7 @@
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_signature"
|
||||
android:maxEms="6"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
@@ -171,17 +254,18 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="我说心动至上哈哈哈"
|
||||
android:textColor="#80FFFFFF"
|
||||
android:textSize="12sp"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_price"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="160金币/分"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/dp8"
|
||||
android:textSize="8dp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
186
app/src/main/res/layout/item_intimacy_list.xml
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:fresco="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
tools:viewBindingIgnore="true">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_item"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_list_photo"
|
||||
android:layout_width="@dimen/dp50"
|
||||
android:layout_height="@dimen/dp50"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="16dp">
|
||||
|
||||
<com.facebook.drawee.view.SimpleDraweeView
|
||||
android:id="@+id/user_head"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
fresco:roundAsCircle="true" />
|
||||
|
||||
<!-- <RelativeLayout-->
|
||||
<!-- android:id="@+id/rl_online_bg"-->
|
||||
<!-- android:layout_width="@dimen/dp30"-->
|
||||
<!-- android:layout_height="@dimen/dp16"-->
|
||||
<!-- android:layout_alignParentBottom="true"-->
|
||||
<!-- android:layout_centerHorizontal="true"-->
|
||||
<!-- android:background="@drawable/look_me_online_bg">-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tv_online"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_centerInParent="true"-->
|
||||
<!-- android:text="在线"-->
|
||||
<!-- android:textColor="@color/white"-->
|
||||
<!-- android:textSize="10sp" />-->
|
||||
<!-- </RelativeLayout>-->
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_toRightOf="@+id/rl_list_photo"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/tv_nick_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="醉红颜"
|
||||
android:textColor="@color/one_text"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<ImageView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/iv_member_sign"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp8"
|
||||
android:src="@drawable/ic_pvip" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:ellipsize="end"-->
|
||||
<!-- android:maxLines="2"-->
|
||||
<!-- android:layout_marginRight="80dp"-->
|
||||
<!-- android:id="@+id/tv_sign"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp6"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="很高兴见到你"-->
|
||||
<!-- android:textColor="@color/three_text"-->
|
||||
<!-- android:textSize="12sp" />-->
|
||||
|
||||
<LinearLayout
|
||||
android:gravity="center_vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@drawable/ic_guard_love"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_intimacy"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp6"
|
||||
android:text="0"
|
||||
android:textColor="#E53620"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:id="@+id/ll_visit_time"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_alignParentRight="true"-->
|
||||
<!-- android:layout_centerVertical="true"-->
|
||||
<!-- android:layout_marginRight="16dp"-->
|
||||
<!-- android:orientation="vertical"-->
|
||||
<!-- android:visibility="gone">-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:layout_gravity="end|right"-->
|
||||
<!-- android:id="@+id/tv_add_time"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp6"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="01/25访问"-->
|
||||
<!-- android:textColor="@color/three_text"-->
|
||||
<!-- android:textSize="12sp" />-->
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_marginTop="@dimen/dp6"-->
|
||||
<!-- android:layout_gravity="center_vertical"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:orientation="horizontal">-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="共 "-->
|
||||
<!-- android:textColor="@color/three_text"-->
|
||||
<!-- android:textSize="14sp"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tv_visit_number"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text="1次"-->
|
||||
<!-- android:textColor="@color/yellow_ffd33e"-->
|
||||
<!-- android:textSize="14sp"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:text=" 访问"-->
|
||||
<!-- android:textColor="@color/three_text"-->
|
||||
<!-- android:textSize="14sp"-->
|
||||
<!-- />-->
|
||||
<!-- </LinearLayout>-->
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- android:id="@+id/tv_chat"-->
|
||||
<!-- android:layout_width="60dp"-->
|
||||
<!-- android:layout_height="30dp"-->
|
||||
<!-- android:layout_alignParentRight="true"-->
|
||||
<!-- android:layout_centerVertical="true"-->
|
||||
<!-- android:layout_marginRight="16dp"-->
|
||||
<!-- android:background="@drawable/shape_button_enable"-->
|
||||
<!-- android:gravity="center"-->
|
||||
<!-- android:text="发消息"-->
|
||||
<!-- android:textColor="@color/white"-->
|
||||
<!-- android:textSize="12sp" />-->
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -45,6 +45,19 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/tv_option_hint2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:text="开启后只可拨打不能接听"
|
||||
android:textColor="@color/three_text"
|
||||
android:textSize="12dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/setting_option_name"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_option_hint"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/tv_all"
|
||||
android:layout_width="match_parent"
|
||||
@@ -65,19 +66,20 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginRight="@dimen/dp6"
|
||||
android:layout_marginLeft="@dimen/dp6"
|
||||
android:background="@drawable/bg_fb65fd"
|
||||
android:background="@drawable/shape_button_enable"
|
||||
android:gravity="center"
|
||||
android:text="全部"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp17" />
|
||||
android:textSize="@dimen/dp13" />
|
||||
|
||||
<TextView
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/tv_boy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp44"
|
||||
android:textColor="#999999"
|
||||
android:textSize="@dimen/dp17"
|
||||
android:textSize="@dimen/dp13"
|
||||
android:text="男up"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/dp6"
|
||||
@@ -86,18 +88,19 @@
|
||||
android:background="@drawable/bg_999999_t10"/>
|
||||
|
||||
<TextView
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/tv_girl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp44"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp17"
|
||||
android:textColor="#999999"
|
||||
android:textSize="@dimen/dp13"
|
||||
android:layout_marginLeft="@dimen/dp6"
|
||||
android:layout_marginRight="@dimen/dp6"
|
||||
android:text="女up"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/bg_fb65fd"/>
|
||||
android:background="@drawable/bg_999999_t10"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 263 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_svip_tag.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 904 B |
BIN
app/src/main/res/mipmap-xhdpi/new_vip_select_bg1.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
app/src/main/res/mipmap-xhdpi/new_vip_select_bg2.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
app/src/main/res/mipmap-xhdpi/svip_select_bg1.png
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
app/src/main/res/mipmap-xhdpi/svip_select_bg2.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 416 KiB After Width: | Height: | Size: 560 KiB |