mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
120 lines
4.6 KiB
XML
120 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/endurain_setup_title"
|
|
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
|
|
|
|
<!-- SERVER -->
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/server_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/endurain_setup_server">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/server_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textUri" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<!-- LOGIN TYPE -->
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
android:id="@+id/login_type_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
app:singleSelection="true">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/local_login_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/endurain_setup_login_type_local" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/sso_login_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/endurain_setup_login_type_sso" />
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
|
|
|
<!-- LOCAL LOGIN -->
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/user_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/username"
|
|
android:visibility="gone">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/user_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/password_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/prefs_password"
|
|
android:visibility="gone">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/password_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textPassword" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/mfa_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
app:errorEnabled="true">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/mfa_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/endurain_setup_mfa_code"
|
|
android:inputType="number"
|
|
android:maxLength="6" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="12dp">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/next_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/endurain_setup_next" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |