diff options
Diffstat (limited to 'app/src/main/res/layout/activity_ssh_keygen.xml')
| -rw-r--r-- | app/src/main/res/layout/activity_ssh_keygen.xml | 53 |
1 files changed, 19 insertions, 34 deletions
diff --git a/app/src/main/res/layout/activity_ssh_keygen.xml b/app/src/main/res/layout/activity_ssh_keygen.xml index 6ec3f2fb..17180f06 100644 --- a/app/src/main/res/layout/activity_ssh_keygen.xml +++ b/app/src/main/res/layout/activity_ssh_keygen.xml @@ -13,16 +13,11 @@ android:layout_height="wrap_content" android:orientation="vertical" android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" android:paddingRight="@dimen/activity_horizontal_margin"> - <androidx.appcompat.widget.AppCompatTextView - android:layout_width="wrap_content" - android:layout_height="48dp" - android:gravity="center_vertical" - android:text="@string/ssh_keygen_length" /> - <com.google.android.material.button.MaterialButtonToggleGroup - android:id="@+id/key_length_group" + android:id="@+id/key_type_group" style="@style/TextAppearance.MaterialComponents.Headline1" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -30,48 +25,38 @@ app:singleSelection="true"> <com.google.android.material.button.MaterialButton - android:id="@+id/key_length_2048" + android:id="@+id/key_type_rsa" + style="?attr/materialButtonOutlinedStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/ssh_keygen_label_rsa" /> + + <com.google.android.material.button.MaterialButton + android:id="@+id/key_type_ecdsa" style="?attr/materialButtonOutlinedStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/key_length_2048" /> + android:text="@string/ssh_keygen_label_ecdsa" /> <com.google.android.material.button.MaterialButton - android:id="@+id/key_length_4096" + android:id="@+id/key_type_ed25519" style="?attr/materialButtonOutlinedStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/key_length_4096" /> + android:text="@string/ssh_keygen_label_ed25519" /> </com.google.android.material.button.MaterialButtonToggleGroup> - <com.google.android.material.textfield.TextInputLayout + <androidx.appcompat.widget.AppCompatTextView + android:id="@+id/key_type_explanation" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:hint="@string/ssh_keygen_passphrase" - app:endIconMode="password_toggle"> - - <com.google.android.material.textfield.TextInputEditText - android:id="@+id/passphrase" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fontFamily="@font/sourcecodepro" - android:importantForAccessibility="no" - android:inputType="textPassword" /> - </com.google.android.material.textfield.TextInputLayout> + android:paddingTop="8dp" /> - <com.google.android.material.textfield.TextInputLayout + <com.google.android.material.checkbox.MaterialCheckBox + android:id="@+id/key_require_authentication" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:hint="@string/ssh_keygen_comment"> - - <com.google.android.material.textfield.TextInputEditText - android:id="@+id/comment" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:inputType="text" /> - </com.google.android.material.textfield.TextInputLayout> + android:text="@string/ssh_keygen_require_authentication" /> <com.google.android.material.button.MaterialButton android:id="@+id/generate" |
