手机适配
This commit is contained in:
@@ -3,35 +3,35 @@
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="240dp"
|
||||
android:layout_width="@dimen/sw_150dp"
|
||||
android:layout_height="@dimen/sw_240dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/ivAvatar"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:elevation="7dp"
|
||||
android:layout_width="@dimen/sw_67dp"
|
||||
android:layout_height="@dimen/sw_67dp"
|
||||
android:elevation="@dimen/sw_7dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
app:civ_border_width="2dp"
|
||||
app:civ_border_width="@dimen/sw_2dp"
|
||||
app:civ_border_color="#DFF346" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginTop="-40dp"
|
||||
android:layout_width="@dimen/sw_150dp"
|
||||
android:layout_height="@dimen/sw_200dp"
|
||||
android:layout_marginTop="@dimen/_sw_40dp"
|
||||
android:background="#ffffff"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardElevation="6dp"
|
||||
app:cardCornerRadius="@dimen/sw_15dp"
|
||||
app:cardElevation="@dimen/sw_6dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginTop="@dimen/sw_10dp"
|
||||
android:gravity="center"
|
||||
android:padding="12dp">
|
||||
android:padding="@dimen/sw_12dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvName"
|
||||
@@ -43,7 +43,7 @@
|
||||
android:textStyle="bold"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textSize="16sp"
|
||||
android:textSize="@dimen/sw_16sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
@@ -52,10 +52,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Be neither too closenor too distant"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginTop="@dimen/sw_5dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="2"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/sw_12sp"
|
||||
android:textColor="#9A9A9A" />
|
||||
|
||||
<TextView
|
||||
@@ -64,22 +64,22 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Be neither too closenor too distant"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginTop="@dimen/sw_5dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="2"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="10sp" />
|
||||
android:textSize="@dimen/sw_10sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/operation"
|
||||
android:gravity="center"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_width="@dimen/sw_100dp"
|
||||
android:layout_height="@dimen/sw_32dp"
|
||||
android:background="@drawable/list_two_bg">
|
||||
<ImageView
|
||||
android:id="@+id/operation_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/operation_add"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user