diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2021-02-07 12:49:00 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-07 12:49:00 +0530 |
| commit | ea24056554f307f4f8f84b0ab6a808730d6acfa4 (patch) | |
| tree | 46f043115a2e0631d2502d7450f0a806bddab3e4 /app/src/main/res/layout | |
| parent | 4b892c328da438024d0dea7e78d33cf48dc52561 (diff) | |
| download | HardenedPass-ea24056554f307f4f8f84b0ab6a808730d6acfa4.tar.gz HardenedPass-ea24056554f307f4f8f84b0ab6a808730d6acfa4.zip | |
Redo authentication modes UI with Chips (#1297)
Diffstat (limited to 'app/src/main/res/layout')
| -rw-r--r-- | app/src/main/res/layout/activity_git_clone.xml | 47 |
1 files changed, 15 insertions, 32 deletions
diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml index 890cc19b..5e29e06f 100644 --- a/app/src/main/res/layout/activity_git_clone.xml +++ b/app/src/main/res/layout/activity_git_clone.xml @@ -33,8 +33,7 @@ android:id="@+id/label_server_url" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" + android:layout_margin="8dp" android:hint="@string/server_url" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -54,8 +53,7 @@ android:id="@+id/label_server_branch" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" + android:layout_margin="8dp" android:hint="@string/server_branch" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -82,51 +80,36 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/label_server_branch" /> - <com.google.android.material.button.MaterialButtonToggleGroup + <com.google.android.material.chip.ChipGroup android:id="@+id/auth_mode_group" - style="@style/TextAppearance.MaterialComponents.Headline1" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:layout_marginTop="8dp" - app:layout_constraintEnd_toEndOf="parent" + android:layout_margin="8dp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/label_auth_mode" app:singleSelection="true"> - <com.google.android.material.button.MaterialButton + <com.google.android.material.chip.Chip android:id="@+id/auth_mode_ssh_key" - style="?attr/materialButtonOutlinedStyle" + style="@style/AppTheme.Chip.Choice" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" - android:minWidth="0dp" - android:padding="8dp" - android:text="@string/connection_mode_ssh_key" - android:textSize="@dimen/toggle_group_text_size" /> + android:text="@string/connection_mode_ssh_key" /> - <com.google.android.material.button.MaterialButton + <com.google.android.material.chip.Chip android:id="@+id/auth_mode_password" - style="?attr/materialButtonOutlinedStyle" + style="@style/AppTheme.Chip.Choice" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" - android:minWidth="0dp" - android:padding="8dp" - android:text="@string/connection_mode_basic_authentication" - android:textSize="@dimen/toggle_group_text_size" /> + android:text="@string/connection_mode_basic_authentication" /> - <com.google.android.material.button.MaterialButton + <com.google.android.material.chip.Chip android:id="@+id/auth_mode_open_keychain" - style="?attr/materialButtonOutlinedStyle" + style="@style/AppTheme.Chip.Choice" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" - android:minWidth="0dp" - android:padding="8dp" - android:text="@string/connection_mode_openkeychain" - android:textSize="@dimen/toggle_group_text_size" /> - </com.google.android.material.button.MaterialButtonToggleGroup> + android:text="@string/connection_mode_openkeychain" /> + </com.google.android.material.chip.ChipGroup> <com.google.android.material.button.MaterialButton android:id="@+id/save_button" |
