summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-05-23 11:57:52 +0200
committerGitHub <noreply@github.com>2020-05-23 15:27:52 +0530
commita6eb4b4e218ef2f5fb2e956a39541c8fea1abd7b (patch)
treee5d0406e582da191c3c49c569519cda58319fc6e /app/src/main/res
parent3711bb9aa7cde62cd21f7db120bbed08f7f32159 (diff)
Make connection mode a <= 1 toggle group to prevent UI overflow (#778)
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_git_clone.xml30
1 files changed, 12 insertions, 18 deletions
diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml
index 8fab27d5..cab9dc7b 100644
--- a/app/src/main/res/layout/activity_git_clone.xml
+++ b/app/src/main/res/layout/activity_git_clone.xml
@@ -145,43 +145,37 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/label_server_path" />
- <RadioGroup
+ <com.google.android.material.button.MaterialButtonToggleGroup
android:id="@+id/connection_mode_group"
+ style="@style/TextAppearance.MaterialComponents.Headline1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal"
+ android:layout_margin="8dp"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/label_connection_mode">
+ app:layout_constraintTop_toBottomOf="@id/label_connection_mode"
+ app:singleSelection="true">
- <RadioButton
+ <com.google.android.material.button.MaterialButton
android:id="@+id/connection_mode_ssh_key"
+ style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:padding="4dp"
android:text="@string/connection_mode_ssh_key" />
- <RadioButton
+ <com.google.android.material.button.MaterialButton
android:id="@+id/connection_mode_password"
+ style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:padding="4dp"
android:text="@string/connection_mode_basic_authentication" />
- <RadioButton
+ <com.google.android.material.button.MaterialButton
android:id="@+id/connection_mode_open_keychain"
+ style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:padding="4dp"
android:text="@string/connection_mode_openkeychain" />
-
- <RadioButton
- android:id="@+id/connection_mode_none"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:padding="4dp"
- android:text="@string/connection_mode_none" />
-
- </RadioGroup>
+ </com.google.android.material.button.MaterialButtonToggleGroup>
<com.google.android.material.button.MaterialButton
android:id="@+id/save_button"