diff options
Diffstat (limited to 'app/src/main/res/layout/fragment_ssh_keygen.xml')
| -rw-r--r-- | app/src/main/res/layout/fragment_ssh_keygen.xml | 73 |
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 |
