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 <FrameLayout
7 android:background="?selectableItemBackground"
8 android:layout_width="fill_parent"
9 android:layout_height="wrap_content">
10
11 <RelativeLayout
12 android:id="@+id/frame"
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content"
15 android:background="?selectableItemBackground"
16 android:paddingStart="8dp"
17 android:paddingTop="8dp"
18 android:paddingBottom="8dp">
19
20 <com.google.android.material.imageview.ShapeableImageView
21 android:id="@+id/account_image"
22 android:layout_width="48dp"
23 android:layout_height="48dp"
24 android:layout_alignParentStart="true"
25 android:contentDescription="@string/account_image_description"
26 app:shapeAppearance="@style/ShapeAppearanceOverlay.Photo" />
27
28 <LinearLayout
29 android:layout_width="fill_parent"
30 android:layout_height="wrap_content"
31 android:layout_centerVertical="true"
32 android:layout_marginStart="@dimen/avatar_item_distance"
33 android:layout_toStartOf="@+id/tgl_account_status"
34 android:layout_toEndOf="@+id/account_image"
35 android:orientation="vertical">
36
37 <TextView
38 android:id="@+id/account_jid"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:scrollHorizontally="false"
42 android:singleLine="true"
43 android:textAppearance="?textAppearanceBodyLarge"
44 tools:text="juliet@example.com" />
45
46 <LinearLayout
47 android:layout_width="fill_parent"
48 android:layout_height="wrap_content"
49 android:layout_centerVertical="true"
50 android:orientation="horizontal">
51
52 <ImageView
53 android:id="@+id/verification_indicator"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:layout_gravity="center_vertical"
57 android:layout_marginRight="4sp"
58 android:alpha="0.70"
59 android:gravity="center_vertical"
60 android:src="@drawable/shield_question" />
61
62 <TextView
63 android:id="@+id/account_status"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:text="@string/account_status_unknown"
67 android:textAppearance="?textAppearanceBodyMedium" />
68 </LinearLayout>
69 </LinearLayout>
70
71 <com.google.android.material.materialswitch.MaterialSwitch
72 android:id="@+id/tgl_account_status"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_alignParentEnd="true"
76 android:layout_centerVertical="true"
77 android:focusable="false"
78 android:padding="16dp" />
79
80 </RelativeLayout>
81 </FrameLayout>
82</layout>