124 lines
4.6 KiB
XML
124 lines
4.6 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="42dp"
|
||
|
android:layout_marginTop="15dp">
|
||
|
|
||
|
<FrameLayout
|
||
|
android:layout_width="44dp"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/guard_number_img"
|
||
|
android:layout_width="19dp"
|
||
|
android:layout_height="19dp"
|
||
|
android:layout_gravity="center"
|
||
|
android:src="@mipmap/icon_one_guard"
|
||
|
android:visibility="gone" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/guard_number_text"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="4"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="16sp"
|
||
|
android:textStyle="bold" />
|
||
|
</FrameLayout>
|
||
|
|
||
|
<com.makeramen.roundedimageview.RoundedImageView
|
||
|
android:id="@+id/avatar"
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:scaleType="centerCrop"
|
||
|
android:src="@mipmap/icon_male_default"
|
||
|
app:riv_oval="true" />
|
||
|
|
||
|
<FrameLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginStart="6dp">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/user_nicename"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="用戶昵稱"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="14sp" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="bottom"
|
||
|
android:layout_marginBottom="2dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/sex"
|
||
|
android:layout_width="18dp"
|
||
|
android:layout_height="15dp"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:src="@mipmap/icon_sex_male_1" />
|
||
|
|
||
|
<FrameLayout
|
||
|
android:layout_width="42dp"
|
||
|
android:layout_height="15dp"
|
||
|
android:layout_gravity="bottom"
|
||
|
android:layout_marginStart="6dp">
|
||
|
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/tag_king"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:src="@mipmap/icon_tag_king" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/guard_level"
|
||
|
android:layout_width="20dp"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_gravity="end"
|
||
|
android:layout_marginEnd="2dp"
|
||
|
android:gravity="center"
|
||
|
android:text="100"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="10sp" />
|
||
|
</FrameLayout>
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="end"
|
||
|
android:layout_marginEnd="25dp"
|
||
|
android:gravity="center"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/contribution"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="14sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/contribution"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="contribution"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="14sp" />
|
||
|
</LinearLayout>
|
||
|
</FrameLayout>
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|