调整个人名片UI

This commit is contained in:
zlzw 2022-11-23 16:33:39 +08:00
parent 0d18a135ec
commit 5768ff5518
2 changed files with 16 additions and 16 deletions

View File

@ -347,6 +347,8 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
if (mUserBean.getGoodnum() != null && !mUserBean.getGoodnum().equals("")) { if (mUserBean.getGoodnum() != null && !mUserBean.getGoodnum().equals("")) {
if(!isAnchor) { if(!isAnchor) {
good_nub_ico.setImageResource(R.mipmap.good_nub); good_nub_ico.setImageResource(R.mipmap.good_nub);
}else{
good_nub_ico.setImageResource(R.mipmap.usercard_good_nub);
} }
good_nub_ico.setVisibility(View.VISIBLE); good_nub_ico.setVisibility(View.VISIBLE);
mID.setText(mUserBean.getGoodnum()); mID.setText(mUserBean.getGoodnum());

View File

@ -156,6 +156,7 @@
android:layout_height="17dp" android:layout_height="17dp"
android:layout_marginTop="13dp" android:layout_marginTop="13dp"
android:gravity="center" android:gravity="center"
android:layout_gravity="center"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
@ -179,7 +180,6 @@
android:id="@+id/id_val" android:id="@+id/id_val"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingRight="10dp"
android:textColor="#B1B1B1" android:textColor="#B1B1B1"
android:textSize="13sp" /> android:textSize="13sp" />
@ -196,7 +196,6 @@
android:id="@+id/fans_val" android:id="@+id/fans_val"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingRight="10dp"
android:textColor="#B1B1B1" android:textColor="#B1B1B1"
android:textSize="13sp" /> android:textSize="13sp" />
@ -213,7 +212,6 @@
android:id="@+id/praise_val" android:id="@+id/praise_val"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingRight="10dp"
android:textColor="#B1B1B1" android:textColor="#B1B1B1"
android:textSize="13sp" /> android:textSize="13sp" />
@ -221,7 +219,7 @@
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="17.5dp"
android:layout_marginTop="15dp" android:layout_marginTop="15dp"
android:gravity="center" android:gravity="center"
android:orientation="horizontal"> android:orientation="horizontal">
@ -229,13 +227,13 @@
<ImageView <ImageView
android:id="@+id/sex" android:id="@+id/sex"
android:layout_width="27dp" android:layout_width="27dp"
android:layout_height="17dp" android:layout_height="match_parent"
android:layout_marginLeft="4dp" /> android:layout_marginLeft="4dp" />
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="46.5dp" android:layout_width="46.5dp"
android:layout_height="17.5dp" android:layout_height="match_parent"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginStart="6dp"> android:layout_marginStart="6dp">
@ -252,7 +250,7 @@
<TextView <TextView
android:id="@+id/user_card_lv_val" android:id="@+id/user_card_lv_val"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginStart="5dp" android:layout_marginStart="5dp"
android:gravity="center" android:gravity="center"
@ -267,30 +265,30 @@
<LinearLayout <LinearLayout
android:id="@+id/btn_union" android:id="@+id/btn_union"
android:layout_width="75dp" android:layout_width="wrap_content"
android:layout_height="23dp" android:layout_height="match_parent"
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:background="@drawable/bg_user_card_guard" android:background="@drawable/bg_user_card_guard"
android:gravity="center" android:gravity="center"
android:orientation="horizontal" android:orientation="horizontal"
android:visibility="gone" android:visibility="gone">
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView <TextView
android:id="@+id/union_val" android:id="@+id/union_val"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="1dp" android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:gravity="center"
android:text="@string/user_card_guard" android:text="@string/user_card_guard"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:textSize="12sp" /> android:textSize="9sp" />
</LinearLayout> </LinearLayout>
<ImageView <ImageView
android:id="@+id/user_card_noble" android:id="@+id/user_card_noble"
android:layout_width="48dp" android:layout_width="wrap_content"
android:layout_height="24dp" android:layout_height="match_parent"
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:src="@mipmap/emperor_rom" /> android:src="@mipmap/emperor_rom" />
</LinearLayout> </LinearLayout>