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
5 <RelativeLayout
6 android:layout_width="match_parent"
7 android:layout_height="wrap_content"
8 android:background="?selectableItemBackground"
9 android:paddingLeft="8dp"
10 android:paddingBottom="8dp"
11 android:paddingTop="8dp">
12
13 <com.google.android.material.imageview.ShapeableImageView
14 android:id="@+id/account_image"
15 android:layout_width="48dp"
16 android:layout_height="48dp"
17 android:layout_alignParentLeft="true"
18 android:contentDescription="@string/account_image_description"
19 app:shapeAppearance="@style/ShapeAppearanceOverlay.Photo" />
20
21 <LinearLayout
22 android:layout_width="fill_parent"
23 android:layout_height="wrap_content"
24 android:layout_centerVertical="true"
25 android:layout_toEndOf="@+id/account_image"
26 android:layout_toRightOf="@+id/account_image"
27 android:orientation="vertical"
28 android:paddingLeft="@dimen/avatar_item_distance"
29 android:layout_toLeftOf="@+id/tgl_account_status"
30 android:layout_toStartOf="@+id/tgl_account_status">
31
32 <TextView
33 android:id="@+id/account_jid"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:scrollHorizontally="false"
37 android:singleLine="true"
38 android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
39
40 <TextView
41 android:id="@+id/account_status"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:text="@string/account_status_unknown"
45 android:textAppearance="@style/TextAppearance.Conversations.Body2" />
46 </LinearLayout>
47
48 <androidx.appcompat.widget.SwitchCompat
49 android:id="@+id/tgl_account_status"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_alignParentRight="true"
53 android:layout_centerVertical="true"
54 android:padding="16dp"
55 android:focusable="false" />
56
57 </RelativeLayout>
58</layout>