|
|
@@ -1,48 +1,50 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="72dp"
|
|
|
- android:foreground="?android:attr/selectableItemBackground">
|
|
|
+ android:foreground="?android:attr/selectableItemBackground"
|
|
|
+ android:paddingEnd="16dp"
|
|
|
+ android:paddingStart="16dp">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/userAvatar"
|
|
|
android:layout_width="40dp"
|
|
|
android:layout_height="40dp"
|
|
|
android:layout_gravity="center_vertical"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
android:background="@drawable/oval_placeholder_background"
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:orientation="vertical"
|
|
|
- android:paddingEnd="16dp"
|
|
|
- android:paddingStart="72dp">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/userNickname"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"
|
|
|
- android:textColor="@android:color/primary_text_light"
|
|
|
- android:textSize="16sp"
|
|
|
- tools:text="Павел Дуров" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/userNickname"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:textColor="@android:color/primary_text_light"
|
|
|
+ android:textSize="16sp"
|
|
|
+ tools:text="Павел Дуров Павел Дуров Павел Дуров Павел Дуров" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/userProfile"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:autoLink="web"
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"
|
|
|
- android:textColor="@android:color/tertiary_text_light"
|
|
|
- android:textSize="14sp"
|
|
|
- tools:text="https://vk.com/id1" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/totalBooksCount"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:textColor="@android:color/tertiary_text_light"
|
|
|
+ android:textSize="16sp"
|
|
|
+ tools:text="40" />
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/newBooksCount"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:textColor="@android:color/holo_green_dark"
|
|
|
+ android:textSize="16sp"
|
|
|
+ tools:text="+2" />
|
|
|
|
|
|
-</FrameLayout>
|
|
|
+</LinearLayout>
|