72 lines
3.1 KiB
XML
72 lines
3.1 KiB
XML
|
|
<!-- 内容卡片 -->
|
||
|
|
<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="90dp"
|
||
|
|
android:layout_marginTop="20dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:id="@+id/container_others"
|
||
|
|
android:gravity="center_vertical"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_rank"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginEnd="10dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Loading..."
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:textColor="#1B1F1A"
|
||
|
|
/>
|
||
|
|
|
||
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
||
|
|
android:id="@+id/iv_avatar"
|
||
|
|
android:layout_width="67dp"
|
||
|
|
android:layout_height="67dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_marginEnd="10dp"
|
||
|
|
android:elevation="4dp"
|
||
|
|
android:src="@drawable/default_avatar"/>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="140dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_name"
|
||
|
|
android:layout_width="140dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:singleLine="true"
|
||
|
|
android:ellipsize="end"
|
||
|
|
android:maxLines="1"
|
||
|
|
android:text="Loading..."
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:textColor="#1B1F1A" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_desc"
|
||
|
|
android:layout_width="140dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:ellipsize="end"
|
||
|
|
android:maxLines="2"
|
||
|
|
android:text="Loading..."
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:textColor="#9A9A9A" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/btn_add"
|
||
|
|
android:layout_width="56dp"
|
||
|
|
android:layout_height="38dp"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="+"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textColor="#02BEAC"
|
||
|
|
android:background="@drawable/round_bg_others" />
|
||
|
|
</LinearLayout>
|
||
|
|
<!-- 内容卡片结束 -->
|