1:修改拍卖房和互娱房展示离线状态
2:修改在线列表为用户列表 3:修改扩列展示用户性别
This commit is contained in:
@@ -40,6 +40,7 @@ public class RoomAuction implements Serializable {
|
||||
private String nobility_image;//贵族图标
|
||||
private String nickname_color;//昵称颜色
|
||||
private String mic_cycle;//麦圈
|
||||
private int is_online=1;//是否在线 : 1在线 2离线
|
||||
}
|
||||
|
||||
@Data
|
||||
|
||||
@@ -97,4 +97,32 @@ public class MeHeadView extends ConstraintLayout {
|
||||
mIvSex.setVisibility(VISIBLE);
|
||||
mIvSex.setImageResource(sex == 1 ? R.mipmap.nan : R.mipmap.nv);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置头像,性别,头像框,贵族
|
||||
* @param sex
|
||||
* @param headPicture
|
||||
* @param framePicture
|
||||
* @param nobilityImage
|
||||
*/
|
||||
public void setAll(int sex,String headPicture, String framePicture, String nobilityImage) {
|
||||
if (!TextUtils.isEmpty(headPicture)) {
|
||||
ImageUtils.loadHead(headPicture, mRiv);
|
||||
}
|
||||
if (TextUtils.isEmpty(framePicture)) {
|
||||
mIvFrame.setVisibility(GONE);
|
||||
} else {
|
||||
mIvFrame.setVisibility(VISIBLE);
|
||||
mIvFrame.setSource(framePicture, 1);
|
||||
}
|
||||
|
||||
mIvSex.setImageResource(sex == 1 ? R.mipmap.nan : R.mipmap.nv);
|
||||
if (nobilityImage != null && !TextUtils.isEmpty(nobilityImage)) {
|
||||
iv_frame_bg.setVisibility(VISIBLE);
|
||||
ImageUtils.loadRoomItem(nobilityImage, iv_frame_bg);
|
||||
} else {
|
||||
iv_frame_bg.setVisibility(GONE);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,15 +22,7 @@
|
||||
app:layout_constraintWidth_percent="0.95"
|
||||
app:riv_oval="true" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_sex"
|
||||
android:layout_width="@dimen/dp_16"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:background="@mipmap/nan"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/riv"
|
||||
app:layout_constraintEnd_toEndOf="@id/riv"
|
||||
tools:visibility="visible" />
|
||||
|
||||
|
||||
<com.xscm.moduleutil.widget.AvatarFrameView
|
||||
android:id="@+id/iv_frame"
|
||||
@@ -65,6 +57,16 @@
|
||||
tools:src="@mipmap/me_sj"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_sex"
|
||||
android:layout_width="@dimen/dp_16"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:background="@mipmap/nan"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/riv"
|
||||
app:layout_constraintEnd_toEndOf="@id/riv"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_master_bg"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user