diff options
author | Matthew Wong <wongma@protonmail.ch> | 2015-07-10 19:45:32 -0400 |
---|---|---|
committer | Matthew Wong <wongma@protonmail.ch> | 2015-07-10 19:45:32 -0400 |
commit | fccefadd3205204cd766af66a391e2b18f52bd67 (patch) | |
tree | d287378b5a66d0f462d26d283408ddc54ad1d7ed /app/src/main/res | |
parent | d2a252a06b589edee912e1193ab2804ff9238dd3 (diff) |
Create password generation dialog
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_pwgen.xml | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_pwgen.xml b/app/src/main/res/layout/fragment_pwgen.xml new file mode 100644 index 00000000..3fd8bd51 --- /dev/null +++ b/app/src/main/res/layout/fragment_pwgen.xml @@ -0,0 +1,108 @@ +<ScrollView + android:layout_height="match_parent" + android:layout_width="match_parent" + xmlns:android="http://schemas.android.com/apk/res/android"> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingBottom="@dimen/activity_vertical_margin" + android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + tools:context=".MainActivityFragment"> + + <EditText + android:id="@+id/passwordText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + android:editable="false" + android:textIsSelectable="true" + android:inputType="textVisiblePassword"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:weightSum="2"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1" + android:orientation="vertical"> + + <TextView + android:id="@+id/include" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Include" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_marginBottom="8dp"/> + + <CheckBox + android:id="@+id/numerals" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Numerals"/> + + + <CheckBox + android:id="@+id/symbols" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Symbols"/> + + <CheckBox + android:id="@+id/uppercase" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Uppercase"/> + + <CheckBox + android:id="@+id/ambiguous" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Ambiguous"/> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1" + android:orientation="vertical"> + + <TextView + android:id="@+id/length" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Length" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_marginBottom="8dp" + /> + + <EditText + android:id="@+id/lengthNumber" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + android:ems="10" + android:inputType="number" + /> + + <CheckBox + android:id="@+id/pronounceable" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Pronounceable"/> + + </LinearLayout> + + + </LinearLayout> + </LinearLayout> +</ScrollView>
\ No newline at end of file |