suggestion_room_item.xml 1.72 KB
Newer Older
1 2 3 4 5 6
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="2dp"
7
    android:background="@color/suggestion_background_color">
8 9 10 11 12 13 14

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_toEndOf="@id/image_avatar_container"
        android:layout_toRightOf="@id/image_avatar_container"
15
        android:background="@color/suggestion_background_color">
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

        <TextView
            android:id="@+id/text_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:maxLines="1"
            android:textColor="@color/black"
            android:textSize="16sp"
            tools:text="@tools:sample/full_names" />

        <TextView
            android:id="@+id/text_fullname"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_toEndOf="@+id/text_name"
            android:layout_toRightOf="@+id/text_name"
            android:maxLines="1"
            android:paddingLeft="8dp"
            android:paddingStart="8dp"
            android:textColor="@color/gray_material"
            android:textSize="16sp"
            tools:text="@tools:sample/full_names" />

    </RelativeLayout>

</RelativeLayout>