aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/fragment_ssh_keygen.xml
diff options
context:
space:
mode:
authorMohamed Zenadi <zeapo@users.noreply.github.com>2015-07-19 13:31:00 +0200
committerMohamed Zenadi <zeapo@users.noreply.github.com>2015-07-19 13:31:00 +0200
commit7517c650752b89acbfec691265ffda22f325783a (patch)
tree37e824f7d5e469aeea917b8696deb7380ff86984 /app/src/main/res/layout/fragment_ssh_keygen.xml
parentea899faa074ee3162186769218c62d3d254ce4ae (diff)
parent4ec3e1956f38879321b13e753294b9fee1b144bf (diff)
downloadHardenedPass-7517c650752b89acbfec691265ffda22f325783a.tar.gz
HardenedPass-7517c650752b89acbfec691265ffda22f325783a.zip
Merge pull request #103 from wongma7/master
SSH key generator
Diffstat (limited to 'app/src/main/res/layout/fragment_ssh_keygen.xml')
-rw-r--r--app/src/main/res/layout/fragment_ssh_keygen.xml73
1 files changed, 73 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_ssh_keygen.xml b/app/src/main/res/layout/fragment_ssh_keygen.xml
new file mode 100644
index 00000000..321e77d0
--- /dev/null
+++ b/app/src/main/res/layout/fragment_ssh_keygen.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/label_length"
+ android:layout_width="wrap_content"
+ android:layout_height="48dp"
+ android:gravity="center_vertical"
+ android:text="@string/ssh_keygen_length"/>
+
+ <Spinner
+ android:id="@+id/length"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:spinnerMode="dropdown"/>
+
+ <android.support.design.widget.TextInputLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ app:hintTextAppearance="@style/TextAppearance.AppCompat"
+ android:layout_marginTop="8dp">
+
+ <EditText
+ android:id="@+id/passphrase"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/ssh_keygen_passphrase"
+ android:inputType="textPassword"/>
+ </android.support.design.widget.TextInputLayout>
+
+ <CheckBox
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/ssh_keygen_show_passphrase"
+ android:id="@+id/show_passphrase"
+ android:checked="false"
+ android:layout_marginTop="8dp"/>
+
+ <android.support.design.widget.TextInputLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ app:hintTextAppearance="@style/TextAppearance.AppCompat"
+ android:layout_marginTop="8dp">
+ <EditText
+ android:id="@+id/comment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/ssh_keygen_comment"
+ android:inputType="textShortMessage"/>
+ </android.support.design.widget.TextInputLayout>
+
+ <Button
+ android:id="@+id/generate_ssh_key"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:onClick="generate"
+ android:text="@string/ssh_keygen_generate"/>
+
+ </LinearLayout>
+</ScrollView> \ No newline at end of file