性别图标修改
This commit is contained in:
@@ -3,10 +3,10 @@ package com.mango.moshen.ui.im.adpter
|
||||
import android.text.TextUtils
|
||||
import android.view.View
|
||||
import android.widget.ImageView
|
||||
import androidx.appcompat.widget.AppCompatImageView
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter
|
||||
import com.chad.library.adapter.base.BaseViewHolder
|
||||
import com.mango.core.user.bean.HelloUserInfo
|
||||
import com.mango.core.user.bean.UserInfo
|
||||
import com.mango.moshen.R
|
||||
import com.mango.moshen.ui.utils.ImageLoadUtils
|
||||
|
||||
@@ -25,6 +25,13 @@ class SayHelloListAdapter :
|
||||
helper.setText(R.id.tv_send_text,item.content)
|
||||
helper.setText(R.id.tv_online_desc,item.onlineDesc)
|
||||
helper.setVisible(R.id.view_online,item.online)
|
||||
|
||||
val ivGender = helper.getView<ImageView>(R.id.iv_gender)
|
||||
if (item.gender == 1) {
|
||||
ivGender.setImageResource(R.drawable.ic_gender_male)
|
||||
} else {
|
||||
ivGender.setImageResource(R.drawable.ic_gender_female)
|
||||
}
|
||||
val ivUserCharm = helper.getView<ImageView>(R.id.iv_user_charm)
|
||||
val ivUserLevel = helper.getView<ImageView>(R.id.iv_user_level)
|
||||
ivUserCharm.visibility = View.GONE
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 873 B |
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 861 B |
@@ -52,7 +52,7 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="21dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
app:layout_flexShrink="0"
|
||||
|
@@ -115,7 +115,7 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="@dimen/dp_21"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_marginEnd="@dimen/dp_3"
|
||||
android:scaleType="fitCenter"
|
||||
|
@@ -43,8 +43,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -43,8 +43,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -41,8 +41,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -82,8 +82,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="@dimen/dp_5"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -53,7 +53,7 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="21dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
app:layout_flexShrink="0"
|
||||
|
@@ -69,8 +69,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="@dimen/dp_13"
|
||||
android:layout_height="@dimen/dp_13"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:layout_marginEnd="@dimen/dp_5"
|
||||
android:scaleType="fitCenter"
|
||||
|
@@ -40,7 +40,7 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="@dimen/dp_21"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_marginLeft="@dimen/dp_4"
|
||||
android:layout_marginEnd="12dp"
|
||||
|
@@ -89,8 +89,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -86,8 +86,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -97,8 +97,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="@dimen/dp_13"
|
||||
android:layout_height="@dimen/dp_13"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_marginEnd="@dimen/dp_5"
|
||||
android:scaleType="fitCenter"
|
||||
android:visibility="gone"
|
||||
|
@@ -113,8 +113,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"/>
|
||||
|
||||
|
@@ -79,8 +79,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="@dimen/dp_5"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -51,7 +51,7 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="21dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
app:layout_flexShrink="0"
|
||||
|
@@ -39,8 +39,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sex"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:src="@drawable/ic_gender_female" />
|
||||
|
||||
|
@@ -43,7 +43,7 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="21dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -73,8 +73,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_user_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_alignTop="@+id/tv_nickname"
|
||||
android:layout_alignBottom="@+id/tv_nickname"
|
||||
android:layout_marginEnd="2dp"
|
||||
|
@@ -77,7 +77,7 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_user_gender"
|
||||
android:layout_width="21dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:scaleType="centerInside"
|
||||
|
@@ -20,8 +20,8 @@
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:id="@+id/iv_gender"
|
||||
android:src="@drawable/ic_gender_female"
|
||||
android:layout_width="@dimen/dp_13"
|
||||
android:layout_height="@dimen/dp_13" />
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_user_level"
|
||||
|
@@ -64,8 +64,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginStart="4dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -58,7 +58,7 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sex"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginStart="3dp"
|
||||
android:src="@drawable/ic_gender_female" />
|
||||
|
@@ -63,8 +63,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -64,8 +64,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -64,8 +64,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
tools:src="@drawable/ic_gender_female"
|
||||
tools:visibility="visible" />
|
||||
|
@@ -50,8 +50,8 @@
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_user_gender"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_alignTop="@+id/tv_nickname"
|
||||
android:layout_alignBottom="@+id/tv_nickname"
|
||||
android:layout_marginEnd="2dp"
|
||||
|
Reference in New Issue
Block a user