49cbe7448e
If there are no gateways in the current account's roster, just show the
old "Jabber ID" label. Otherwise show a list of toggle buttons. These
buttons show the type of their gateway and change the JID input to
not autocomplete and to show a hint matching the jabber🆔gateway
prompt.
This is just UI, submit behaviour is unchanged. List is not yet populated by
this code.
48 lines
2 KiB
XML
48 lines
2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="?attr/dialog_horizontal_padding"
|
|
android:paddingTop="?attr/dialog_vertical_padding"
|
|
android:paddingRight="?attr/dialog_horizontal_padding"
|
|
android:paddingBottom="?attr/dialog_vertical_padding">
|
|
|
|
<TextView
|
|
style="@style/InputLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/your_account" />
|
|
|
|
<Spinner
|
|
android:id="@+id/account"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/gateway_list"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/jid_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/account_settings_jabber_id"
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/jid"
|
|
style="@style/Widget.Conversations.EditText"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:imeOptions="actionDone|flagNoExtractUi"
|
|
android:inputType="textEmailAddress" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
</layout>
|