search_result_item.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android"
 3    xmlns:app="http://schemas.android.com/apk/res-auto"
 4    xmlns:tools="http://schemas.android.com/tools">
 5
 6    <RelativeLayout
 7        android:layout_width="match_parent"
 8        android:layout_height="wrap_content"
 9        android:background="?selectableItemBackground"
10        android:padding="@dimen/list_padding">
11
12        <com.google.android.material.imageview.ShapeableImageView
13            android:id="@+id/avatar"
14            android:layout_width="48dp"
15            android:layout_height="48dp"
16            android:layout_alignParentLeft="true"
17            android:scaleType="centerCrop"
18            app:strokeColor="@color/custom_theme_accent"
19            app:shapeAppearance="@style/ShapeAppearanceOverlay.Photo" />
20
21        <RelativeLayout
22            android:layout_width="wrap_content"
23            android:layout_height="wrap_content"
24            android:layout_marginLeft="@dimen/avatar_item_distance"
25            android:layout_toRightOf="@+id/avatar">
26
27            <TextView
28                android:id="@+id/name"
29                android:layout_width="wrap_content"
30                android:layout_height="wrap_content"
31                android:singleLine="true"
32                android:textAppearance="@style/TextAppearance.Conversations.Subhead"
33                tools:text="Proosdy IM Chat trantu" />
34
35            <TextView
36                android:id="@+id/language"
37                android:layout_width="wrap_content"
38                android:layout_height="wrap_content"
39                android:layout_alignBaseline="@id/name"
40                android:layout_marginLeft="8sp"
41                android:layout_toRightOf="@id/name"
42                android:singleLine="true"
43                android:textAppearance="@style/TextAppearance.Conversations.Caption"
44                tools:text="EN" />
45
46            <TextView
47                android:id="@+id/description"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:layout_below="@id/name"
51                android:maxLines="2"
52                android:textAppearance="@style/TextAppearance.Conversations.Body1" />
53
54            <TextView
55                android:id="@+id/room"
56                android:layout_width="wrap_content"
57                android:layout_height="wrap_content"
58                android:layout_below="@id/description"
59                android:maxLines="2"
60                android:textAppearance="@style/TextAppearance.Conversations.Body1.Secondary" />
61        </RelativeLayout>
62
63    </RelativeLayout>
64</layout>