2
This commit is contained in:
parent
e680ab7d87
commit
2a8f6d99a5
@ -32,6 +32,7 @@ import com.yunbao.common.interfaces.CommonCallback;
|
||||
import com.yunbao.common.manager.OpenAdManager;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.views.NineGridLayout;
|
||||
import com.yunbao.common.views.TopGradual;
|
||||
@ -302,7 +303,9 @@ public class CommunityDetailsActivity extends AbsActivity {
|
||||
name.setText(activeBean.getUser_name());
|
||||
time.setText(activeBean.getCreate_time());
|
||||
likeCount.setText(activeBean.getLove_num() + "人觉得很赞");
|
||||
content.setText(String.valueOf(JSONObject.parseObject(activeBean.getContent()).get("msg")));
|
||||
if (!StringUtil.isEmpty(activeBean.getContent())) {
|
||||
content.setText(String.valueOf(JSONObject.parseObject(activeBean.getContent()).get("msg")));
|
||||
}
|
||||
if (activeBean.getIs_attention().equals("1")) {//关注
|
||||
ImgLoader.display(CommunityDetailsActivity.this, R.mipmap.icon_like_followed, followIcon);
|
||||
followName.setText("已关注");
|
||||
|
@ -20,6 +20,7 @@ import com.makeramen.roundedimageview.RoundedImageView;
|
||||
import com.ms.banner.Banner;
|
||||
import com.ms.banner.listener.OnBannerClickListener;
|
||||
import com.xuexiang.xui.widget.flowlayout.FlowTagLayout;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.adapter.LabelTagAdapter;
|
||||
@ -144,12 +145,6 @@ public class UserHomeActivity extends AbsActivity {
|
||||
userPresidentName.setText(userInfo.getUserHomeTopInfo().getUser_president_name());
|
||||
}
|
||||
isAnchor = userInfo.getUserHomeTopInfo().getIs_anchor() == 1;
|
||||
if (isAnchor) {
|
||||
authorLayout.setVisibility(View.VISIBLE);
|
||||
levelLayout.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
authorLayout.setVisibility(View.GONE);
|
||||
}
|
||||
ImgLoader.display(UserHomeActivity.this, userInfo.getUserHomeTopInfo().getUser_avatar(), avatar);
|
||||
userName.setText(userInfo.getUserHomeTopInfo().getUser_name());//用户名称
|
||||
fansCount.setText(String.valueOf(userInfo.getUserHomeTopInfo().getUser_fans_num()));//粉丝数量
|
||||
@ -158,16 +153,19 @@ public class UserHomeActivity extends AbsActivity {
|
||||
userId.setText("ID:" + userInfo.getUserHomeTopInfo().getUser_id());//用户ID
|
||||
userStatus.setText("");//认证状态
|
||||
ImgLoader.display(UserHomeActivity.this, Integer.parseInt(String.valueOf(userInfo.getUserHomeTopInfo().getUser_sex())) == 0 ? R.mipmap.icon_man_new : R.mipmap.icon_wumen, user_sex);
|
||||
ImgLoader.display(UserHomeActivity.this, userInfo.getUserHomeTopInfo().getUser_level_anchor_img(), authorIcon);
|
||||
ImgLoader.display(UserHomeActivity.this, CommonAppConfig.HOST + userInfo.getUserHomeTopInfo().getUser_level_anchor_img(), authorIcon);
|
||||
ImgLoader.display(UserHomeActivity.this, userInfo.getUserHomeTopInfo().getUser_level_img(), levelIcon);
|
||||
|
||||
if (isAnchor) {//是否是主播
|
||||
authorLayout.setVisibility(View.VISIBLE);
|
||||
levelLayout.setVisibility(View.VISIBLE);
|
||||
authenticationLayout.setVisibility(View.VISIBLE);
|
||||
itemLayout01.setVisibility(View.VISIBLE);
|
||||
itemLayout02.setVisibility(View.VISIBLE);
|
||||
itemLayout03.setVisibility(View.VISIBLE);
|
||||
itemLayout04.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
authorLayout.setVisibility(View.GONE);
|
||||
authenticationLayout.setVisibility(View.GONE);
|
||||
itemLayout03.setVisibility(View.VISIBLE);
|
||||
itemLayout04.setVisibility(View.VISIBLE);
|
||||
|
@ -18,6 +18,7 @@ import com.makeramen.roundedimageview.RoundedImageView;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.bean.ActiveOtherBean;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.views.NineGridLayout;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -94,7 +95,9 @@ public class UserCommunityAdapter extends RecyclerView.Adapter {
|
||||
ImgLoader.display(mContext, bean.getUser_avatar(), mAvatar);
|
||||
userName.setText(bean.getUser_name());
|
||||
time.setText(bean.getCreate_time());
|
||||
content.setText(String.valueOf(JSONObject.parseObject(bean.getContent()).get("msg")));
|
||||
if (!StringUtil.isEmpty(bean.getContent())) {
|
||||
content.setText(String.valueOf(JSONObject.parseObject(bean.getContent()).get("msg")));
|
||||
}
|
||||
likeCount.setText(String.valueOf(bean.getLove_num()));
|
||||
comCount.setText(String.valueOf(bean.getComment_num()));
|
||||
shareCount.setText(String.valueOf(bean.getShare_num()));
|
||||
|
@ -6,6 +6,14 @@ public class HomeUserExhibitInfoBean extends BaseModel {
|
||||
public UserHomeTopInfo userHomeTopInfo;
|
||||
public List<GiftAlreadyWall> giftAlreadyWall;
|
||||
|
||||
public List<GiftAlreadyWall> getGiftAlreadyWall() {
|
||||
return giftAlreadyWall;
|
||||
}
|
||||
|
||||
public void setGiftAlreadyWall(List<GiftAlreadyWall> giftAlreadyWall) {
|
||||
this.giftAlreadyWall = giftAlreadyWall;
|
||||
}
|
||||
|
||||
public UserHomeTopInfo getUserHomeTopInfo() {
|
||||
return userHomeTopInfo;
|
||||
}
|
||||
|
@ -244,8 +244,7 @@
|
||||
android:id="@+id/authorlIcon"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:visibility="visible" />
|
||||
android:layout_marginLeft="5dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/author"
|
||||
@ -264,6 +263,7 @@
|
||||
android:id="@+id/levelLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
@ -271,8 +271,7 @@
|
||||
android:id="@+id/levelIcon"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:visibility="visible" />
|
||||
android:layout_marginLeft="5dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/level"
|
||||
|
Loading…
Reference in New Issue
Block a user