summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/activity_git_clone.xml
diff options
context:
space:
mode:
authorAditya Wasan <adityawasan55@gmail.com>2021-01-08 03:38:45 +0530
committerGitHub <noreply@github.com>2021-01-08 03:38:45 +0530
commit534269c8fc8fbd9a72e64389564fb0c90365c0c0 (patch)
treed4a9b6cb1836e54e997dfb3fe6ee76ca44ebe653 /app/src/main/res/layout/activity_git_clone.xml
parent5713c719a56e47204b659488c5bf1ce2bcaf0e44 (diff)
downloadHardenedPass-534269c8fc8fbd9a72e64389564fb0c90365c0c0.tar.gz
HardenedPass-534269c8fc8fbd9a72e64389564fb0c90365c0c0.zip
Fix auth modes not displaying properly (#1271)
* res: fix auth modes not displaying properly Signed-off-by: Aditya Wasan <adityawasan55@gmail.com> * res: wrap onboarding flow screens inside ScrollView Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
Diffstat (limited to 'app/src/main/res/layout/activity_git_clone.xml')
-rw-r--r--app/src/main/res/layout/activity_git_clone.xml30
1 files changed, 23 insertions, 7 deletions
diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml
index 04b8338c..890cc19b 100644
--- a/app/src/main/res/layout/activity_git_clone.xml
+++ b/app/src/main/res/layout/activity_git_clone.xml
@@ -33,7 +33,8 @@
android:id="@+id/label_server_url"
android:layout_width="0dp"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
android:hint="@string/server_url"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@@ -53,7 +54,8 @@
android:id="@+id/label_server_branch"
android:layout_width="0dp"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
android:hint="@string/server_branch"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@@ -83,9 +85,11 @@
<com.google.android.material.button.MaterialButtonToggleGroup
android:id="@+id/auth_mode_group"
style="@style/TextAppearance.MaterialComponents.Headline1"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
+ app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/label_auth_mode"
app:singleSelection="true">
@@ -95,21 +99,33 @@
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/connection_mode_ssh_key" />
+ android:layout_weight="1"
+ android:minWidth="0dp"
+ android:padding="8dp"
+ android:text="@string/connection_mode_ssh_key"
+ android:textSize="@dimen/toggle_group_text_size" />
<com.google.android.material.button.MaterialButton
android:id="@+id/auth_mode_password"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/connection_mode_basic_authentication" />
+ android:layout_weight="1"
+ android:minWidth="0dp"
+ android:padding="8dp"
+ android:text="@string/connection_mode_basic_authentication"
+ android:textSize="@dimen/toggle_group_text_size" />
<com.google.android.material.button.MaterialButton
android:id="@+id/auth_mode_open_keychain"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/connection_mode_openkeychain" />
+ 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>
<com.google.android.material.button.MaterialButton