aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/search_result_item.xml
blob: 1edefa1f8ffd031c08956fdb660d5550efd3f559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?selectableItemBackground"
        android:padding="@dimen/list_padding">

        <com.makeramen.roundedimageview.RoundedImageView
            android:id="@+id/avatar"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_alignParentStart="true"
            android:layout_alignParentLeft="true"
            android:scaleType="centerCrop"
            app:riv_corner_radius="2dp" />

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/avatar_item_distance"
            android:layout_marginLeft="@dimen/avatar_item_distance"
            android:layout_toEndOf="@+id/avatar"
            android:layout_toRightOf="@+id/avatar">

            <TextView
                android:id="@+id/name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:singleLine="true"
                android:textAppearance="@style/TextAppearance.Conversations.Subhead"
                tools:text="Proosdy IM Chat trantu" />

            <TextView
                android:id="@+id/language"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignBaseline="@id/name"
                android:layout_marginStart="8sp"
                android:layout_marginLeft="8sp"
                android:layout_toEndOf="@id/name"
                android:layout_toRightOf="@id/name"
                android:singleLine="true"
                android:textAppearance="@style/TextAppearance.Conversations.Caption"
                tools:text="EN" />

            <TextView
                android:id="@+id/description"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/name"
                android:maxLines="2"
                android:textAppearance="@style/TextAppearance.Conversations.Body1" />

            <TextView
                android:id="@+id/room"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/description"
                android:maxLines="2"
                android:textAppearance="@style/TextAppearance.Conversations.Body1.Secondary" />
        </RelativeLayout>
    </RelativeLayout>
</layout>