手机适配
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
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_height="@dimen/sw_90dp"
|
||||
android:layout_marginTop="@dimen/sw_20dp"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/container_others"
|
||||
android:gravity="center_vertical"
|
||||
@@ -13,60 +13,60 @@
|
||||
android:id="@+id/tv_rank"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginEnd="@dimen/sw_10dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Loading..."
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:textColor="#1B1F1A"
|
||||
/>
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/iv_avatar"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:layout_width="@dimen/sw_67dp"
|
||||
android:layout_height="@dimen/sw_67dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:elevation="4dp"
|
||||
android:layout_marginEnd="@dimen/sw_10dp"
|
||||
android:elevation="@dimen/sw_4dp"
|
||||
android:src="@drawable/default_avatar"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="140dp"
|
||||
android:layout_width="@dimen/sw_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_width="@dimen/sw_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:textSize="@dimen/sw_16sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="140dp"
|
||||
android:layout_width="@dimen/sw_140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:text="Loading..."
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/sw_12sp"
|
||||
android:textColor="#9A9A9A" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_add"
|
||||
android:gravity="center"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_width="@dimen/sw_56dp"
|
||||
android:layout_height="@dimen/sw_38dp"
|
||||
android:background="@drawable/round_bg_others">
|
||||
<ImageView
|
||||
android:id="@+id/add_icon"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_width="@dimen/sw_15dp"
|
||||
android:layout_height="@dimen/sw_15dp"
|
||||
android:src="@drawable/round_bg_others_add"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user