dialog_enter_jid.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android">
 3
 4    <LinearLayout
 5        android:layout_width="match_parent"
 6        android:layout_height="match_parent"
 7        android:orientation="vertical"
 8        android:padding="?dialogPreferredPadding">
 9
10        <com.google.android.material.textfield.TextInputLayout
11            style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
12            android:layout_width="match_parent"
13            android:layout_height="wrap_content"
14            android:hint="@string/your_account">
15
16            <com.google.android.material.textfield.MaterialAutoCompleteTextView
17                android:id="@+id/account"
18                android:layout_width="match_parent"
19                android:layout_height="wrap_content"
20                android:maxLines="1"
21                android:inputType="none" />
22
23        </com.google.android.material.textfield.TextInputLayout>
24
25        <androidx.recyclerview.widget.RecyclerView
26            android:id="@+id/gateway_list"
27            android:layout_width="match_parent"
28            android:layout_height="wrap_content" />
29
30        <com.google.android.material.textfield.TextInputLayout
31            android:id="@+id/jid_layout"
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content"
34            android:layout_marginTop="2dp"
35            android:hint="@string/account_settings_jabber_id">
36
37            <com.google.android.material.textfield.MaterialAutoCompleteTextView
38                android:id="@+id/jid"
39                android:layout_width="fill_parent"
40                android:layout_height="wrap_content"
41                android:imeOptions="actionDone|flagNoExtractUi"
42                android:inputType="textEmailAddress"
43                android:padding="12dp" />
44        </com.google.android.material.textfield.TextInputLayout>
45
46        <CheckBox
47            android:id="@+id/bookmark"
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:layout_marginTop="2dp"
51            android:checked="true"
52            android:text="Save as Contact / Bookmark"/>
53    </LinearLayout>
54</layout>