create_public_channel_dialog.xml

 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    <LinearLayout
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent"
 8        android:orientation="vertical"
 9        android:padding="?dialogPreferredPadding">
10
11        <TextView
12            style="@style/InputLabel"
13            android:layout_width="match_parent"
14            android:layout_height="wrap_content"
15            android:text="@string/your_account"/>
16
17        <Spinner
18            android:id="@+id/account"
19            android:layout_width="fill_parent"
20            android:layout_height="wrap_content"/>
21
22        <com.google.android.material.textfield.TextInputLayout
23            android:id="@+id/name_layout"
24            android:layout_width="match_parent"
25            android:layout_height="wrap_content"
26            app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
27            app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
28
29            <EditText
30                android:id="@+id/group_chat_name"
31                style="@style/Widget.Conversations.EditText"
32                android:layout_width="match_parent"
33                android:layout_height="wrap_content"
34                android:hint="@string/create_dialog_channel_name"
35                android:imeOptions="actionNext|flagNoExtractUi"/>
36        </com.google.android.material.textfield.TextInputLayout>
37        <com.google.android.material.textfield.TextInputLayout
38            android:id="@+id/xmpp_address_layout"
39            android:visibility="gone"
40            android:layout_width="match_parent"
41            android:layout_height="wrap_content"
42            android:hint="@string/xmpp_address"
43            app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
44            app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
45
46            <AutoCompleteTextView
47                android:id="@+id/jid"
48                style="@style/Widget.Conversations.EditText"
49                android:layout_width="fill_parent"
50                android:layout_height="wrap_content"
51                android:inputType="textEmailAddress"
52                android:imeOptions="actionDone|flagNoExtractUi"/>
53        </com.google.android.material.textfield.TextInputLayout>
54    </LinearLayout>
55</layout>