aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/fragment_ssh_keygen.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-06-29 12:50:05 +0530
committerGitHub <noreply@github.com>2020-06-29 12:50:05 +0530
commitac6220eed31f1aab0f73403b3befe77c57f0c9a1 (patch)
tree5950bb69dcfc1f10170af563151d4b52b1b055bc /app/src/main/res/layout/fragment_ssh_keygen.xml
parent063c1a1144bb50845ecfb7d56eea16e4db4540e4 (diff)
downloadHardenedPass-ac6220eed31f1aab0f73403b3befe77c57f0c9a1.tar.gz
HardenedPass-ac6220eed31f1aab0f73403b3befe77c57f0c9a1.zip
Merge SshKeyGenFragment into its activity (#897)
* Merge SshKeyGenFragment into its activity Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Drop neutral button discouraged by material specs Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Address review comments Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/layout/fragment_ssh_keygen.xml')
-rw-r--r--app/src/main/res/layout/fragment_ssh_keygen.xml84
1 files changed, 0 insertions, 84 deletions
diff --git a/app/src/main/res/layout/fragment_ssh_keygen.xml b/app/src/main/res/layout/fragment_ssh_keygen.xml
deleted file mode 100644
index 6ec3f2fb..00000000
--- a/app/src/main/res/layout/fragment_ssh_keygen.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
- ~ SPDX-License-Identifier: GPL-3.0-only
- -->
-
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingLeft="@dimen/activity_horizontal_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"
- style="@style/TextAppearance.MaterialComponents.Headline1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:selectionRequired="true"
- app:singleSelection="true">
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/key_length_2048"
- style="?attr/materialButtonOutlinedStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/key_length_2048" />
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/key_length_4096"
- style="?attr/materialButtonOutlinedStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/key_length_4096" />
- </com.google.android.material.button.MaterialButtonToggleGroup>
-
- <com.google.android.material.textfield.TextInputLayout
- 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>
-
- <com.google.android.material.textfield.TextInputLayout
- 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>
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/generate"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="end"
- android:layout_marginTop="8dp"
- android:text="@string/ssh_keygen_generate" />
- </LinearLayout>
-</ScrollView>