Advertisement
Guest User

list

a guest
Jan 25th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="wrap_content"
  6.     android:orientation="horizontal"
  7.     android:padding="16dp">
  8.  
  9.     <de.hdodenhof.circleimageview.CircleImageView
  10.         android:id="@+id/img_item_photo"
  11.         android:layout_width="60dp"
  12.         android:layout_height="60dp"
  13.         android:layout_marginEnd="16dp"
  14.         tools:src="@android:color/darker_gray" />
  15.  
  16.     <LinearLayout
  17.         android:layout_width="match_parent"
  18.         android:layout_height="wrap_content"
  19.         android:layout_centerVertical="true"
  20.         android:layout_toEndOf="@id/img_item_photo"
  21.         android:layout_toRightOf="@id/img_item_photo"
  22.         android:orientation="vertical">
  23.         <TextView
  24.             android:id="@+id/tv_item_name"
  25.             android:layout_width="match_parent"
  26.             android:layout_height="wrap_content"
  27.             android:layout_marginBottom="8dp"
  28.             android:textSize="16sp"
  29.             android:textStyle="bold"
  30.             tools:text="@string/instrument_name" />
  31.         <TextView
  32.             android:id="@+id/tv_item_detail"
  33.             android:layout_width="match_parent"
  34.             android:layout_height="wrap_content"
  35.             android:ellipsize="end"
  36.             android:maxLines="2"
  37.             tools:text="@string/detail" />
  38.     </LinearLayout>
  39. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement