summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/encrypt_layout.xml10
-rw-r--r--app/src/main/res/layout/fragment_pwgen.xml108
-rw-r--r--app/src/main/res/values/strings.xml8
3 files changed, 125 insertions, 1 deletions
diff --git a/app/src/main/res/layout/encrypt_layout.xml b/app/src/main/res/layout/encrypt_layout.xml
index 5fc93b3c..dcb6bf88 100644
--- a/app/src/main/res/layout/encrypt_layout.xml
+++ b/app/src/main/res/layout/encrypt_layout.xml
@@ -64,7 +64,15 @@
android:id="@+id/crypto_password_edit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:typeface="monospace"/>
+ android:typeface="monospace"
+ android:layout_weight="1"/>
+ <ImageButton
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:src="@drawable/ic_action_new"
+ android:background="@drawable/blue_rectangle"
+ android:id="@+id/generate_password"
+ android:onClick="handleClick"/>
</LinearLayout>
<TextView
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..072a78a9
--- /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="@string/pwgen_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="@string/pwgen_numerals"/>
+
+
+ <CheckBox
+ android:id="@+id/symbols"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/pwgen_symbols"/>
+
+ <CheckBox
+ android:id="@+id/uppercase"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/pwgen_uppercase"/>
+
+ <CheckBox
+ android:id="@+id/ambiguous"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/pwgen_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
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a8db99ff..a9b03151 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -114,6 +114,14 @@
<string name="pref_recursive_filter">Recursive filtering</string>
<string name="pref_recursive_filter_hint">Recursively find passwords of the current directory.</string>
+ <!-- pwgen fragment -->
+ <string name="pwgen_generate">Generate</string>
+ <string name="pwgen_include">Include</string>
+ <string name="pwgen_numerals">Numerals</string>
+ <string name="pwgen_symbols">Symbols</string>
+ <string name="pwgen_uppercase">Uppercase</string>
+ <string name="pwgen_ambiguous">Ambiguous</string>
+
<!-- Misc -->
<string name="dialog_ok">OK</string>
<string name="dialog_yes">Yes</string>