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