1:修改道具商城展示用户头像
2:修改房间用户展示的靓号图标展示
This commit is contained in:
@@ -20,6 +20,7 @@ import com.xscm.moduleutil.http.BaseObserver
|
||||
import com.xscm.moduleutil.http.RetrofitClient
|
||||
import com.xscm.moduleutil.utils.ColorManager
|
||||
import com.xscm.moduleutil.utils.ImageUtils
|
||||
import com.xscm.moduleutil.utils.SpUtil
|
||||
import com.xscm.moduleutil.widget.GiftAnimView
|
||||
import io.reactivex.disposables.Disposable
|
||||
|
||||
@@ -161,12 +162,12 @@ class PurchaseOutfitsDialog(context: Context) :
|
||||
mBinding.ivOutfits.visibility = View.VISIBLE
|
||||
mBinding.imJsk.visibility = View.GONE
|
||||
mBinding.imQp.visibility=View.GONE
|
||||
ImageUtils.loadHead(personaltyListBean?.base_image, mBinding.ivOutfits)
|
||||
ImageUtils.loadHead(SpUtil.getUserInfo().avatar, mBinding.ivOutfits)
|
||||
if (personaltyListBean?.type == 1) {
|
||||
mBinding.imageHeadPortrait.visibility= View.VISIBLE
|
||||
imageBg2!!.visibility = View.GONE
|
||||
mBinding.imageHeadPortrait.stopAll()
|
||||
mBinding.imageHeadPortrait.setSource(personaltyListBean?.play_image, 2)
|
||||
mBinding.imageHeadPortrait.setSource(personaltyListBean?.play_image, 1)
|
||||
}else if (personaltyListBean?.type == 2) {
|
||||
mBinding.imageHeadPortrait.visibility= View.GONE
|
||||
imageBg2!!.visibility = View.VISIBLE
|
||||
|
||||
@@ -489,6 +489,11 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
||||
mBinding.ivAvatar.setData(userInfo.getAvatar(), "", userInfo.getNobility_image() + "");
|
||||
String sex = userInfo.getSex() == 1 ? "男" : "女";
|
||||
mBinding.tvId.setText(sex + " ID:" + userInfo.getUser_code());
|
||||
if (userInfo.getIs_use_code() == 1){
|
||||
mBinding.ivLh.setVisibility(VISIBLE);
|
||||
}else {
|
||||
mBinding.ivLh.setVisibility(GONE);
|
||||
}
|
||||
mBinding.tvName.setText(userInfo.getNickname());
|
||||
|
||||
if (!userInfo.getNickname_color().isEmpty()) {
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
|
||||
<com.xscm.moduleutil.widget.AvatarFrameView
|
||||
android:id="@+id/image_headPortrait"
|
||||
android:layout_width="@dimen/dp_72"
|
||||
android:layout_height="@dimen/dp_72"
|
||||
android:layout_width="@dimen/dp_80"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_outfits"
|
||||
app:layout_constraintStart_toStartOf="@+id/iv_outfits"
|
||||
app:layout_constraintEnd_toEndOf="@+id/iv_outfits"
|
||||
|
||||
@@ -79,12 +79,22 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_13"
|
||||
android:text="Lv.1"
|
||||
tools:text="Lv.1"
|
||||
android:textColor="@color/colorWhite65"
|
||||
android:textSize="@dimen/sp_10"
|
||||
app:layout_constraintStart_toStartOf="@+id/tv_name"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_name" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_lh"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_15"
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:src="@mipmap/beautiful"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_id"
|
||||
app:layout_constraintStart_toEndOf="@+id/tv_id"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_id" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_gh"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -93,7 +103,7 @@
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:maxWidth="@dimen/dp_140"
|
||||
android:text="所属公会:"
|
||||
tools:text="所属公会:"
|
||||
android:textColor="@color/colorWhite65"
|
||||
android:textSize="@dimen/sp_10"
|
||||
app:layout_constraintStart_toStartOf="@+id/tv_id"
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
<ImageView
|
||||
android:id="@+id/im_beautiful"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_11"
|
||||
android:layout_height="@dimen/dp_13"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@mipmap/beautiful"
|
||||
|
||||
Reference in New Issue
Block a user