From f6d3dc23fbf68e8440fd9cab77797ad45b3100b1 Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Wed, 26 Aug 2015 17:03:37 -0400 Subject: UI cleanup & reformat --- .../main/java/com/zeapo/pwdstore/SshKeyGen.java | 2 - app/src/main/res/layout/activity_ssh_keygen.xml | 7 -- app/src/main/res/layout/app_list_item.xml | 29 +++-- app/src/main/res/layout/autofill_instructions.xml | 122 ++++++++++----------- app/src/main/res/layout/autofill_recycler_view.xml | 14 +-- app/src/main/res/layout/autofill_row_layout.xml | 31 +++--- app/src/main/res/layout/fragment_autofill.xml | 46 ++++---- app/src/main/res/layout/fragment_pwgen.xml | 48 ++++---- app/src/main/res/layout/fragment_show_ssh_key.xml | 21 ++-- app/src/main/res/layout/fragment_ssh_keygen.xml | 44 ++++---- 10 files changed, 173 insertions(+), 191 deletions(-) delete mode 100644 app/src/main/res/layout/activity_ssh_keygen.xml diff --git a/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java b/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java index 4fb5f0e3..b4daa5db 100644 --- a/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java +++ b/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java @@ -145,8 +145,6 @@ public class SshKeyGen extends AppCompatActivity { setTitle("Generate SSH Key"); - setContentView(R.layout.activity_ssh_keygen); - if (savedInstanceState == null) { getFragmentManager().beginTransaction() .replace(android.R.id.content, new SshKeyGenFragment()).commit(); diff --git a/app/src/main/res/layout/activity_ssh_keygen.xml b/app/src/main/res/layout/activity_ssh_keygen.xml deleted file mode 100644 index fb3d8a25..00000000 --- a/app/src/main/res/layout/activity_ssh_keygen.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/app_list_item.xml b/app/src/main/res/layout/app_list_item.xml index 1a6c6e9b..15758cd5 100644 --- a/app/src/main/res/layout/app_list_item.xml +++ b/app/src/main/res/layout/app_list_item.xml @@ -1,24 +1,23 @@ + android:layout_width="match_parent" + android:layout_height="40dp" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingLeft="8dp" + android:paddingRight="8dp"> + android:layout_height="24dp" /> - + \ No newline at end of file diff --git a/app/src/main/res/layout/autofill_instructions.xml b/app/src/main/res/layout/autofill_instructions.xml index 82ad16d1..0316dd91 100644 --- a/app/src/main/res/layout/autofill_instructions.xml +++ b/app/src/main/res/layout/autofill_instructions.xml @@ -1,63 +1,63 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/autofill_recycler_view.xml b/app/src/main/res/layout/autofill_recycler_view.xml index 4b4bcf26..5dc950c2 100644 --- a/app/src/main/res/layout/autofill_recycler_view.xml +++ b/app/src/main/res/layout/autofill_recycler_view.xml @@ -1,20 +1,20 @@ + android:layout_width="match_parent" + android:layout_height="match_parent"> + android:layout_height="match_parent" + android:scrollbars="vertical" /> + android:indeterminate="true" + android:visibility="gone" /> \ No newline at end of file diff --git a/app/src/main/res/layout/autofill_row_layout.xml b/app/src/main/res/layout/autofill_row_layout.xml index 6e51fab3..117a76fc 100644 --- a/app/src/main/res/layout/autofill_row_layout.xml +++ b/app/src/main/res/layout/autofill_row_layout.xml @@ -1,43 +1,42 @@ + android:layout_width="match_parent" + android:layout_height="64dp" + android:background="@drawable/autofill_row_background" + android:orientation="vertical"> - + android:paddingRight="@dimen/activity_horizontal_margin"> + + android:layout_width="48dp" + android:layout_height="48dp" /> + android:orientation="vertical"> + android:layout_height="wrap_content" /> + android:textColor="@color/grey_600" /> diff --git a/app/src/main/res/layout/fragment_autofill.xml b/app/src/main/res/layout/fragment_autofill.xml index a5b1ac90..7bdf3d84 100644 --- a/app/src/main/res/layout/fragment_autofill.xml +++ b/app/src/main/res/layout/fragment_autofill.xml @@ -1,58 +1,56 @@ + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingBottom="20dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" + android:paddingTop="20dp"> + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + android:checked="false" + android:text="@string/autofill_apps_default" /> + android:checked="false" + android:text="@string/autofill_apps_first" /> + android:text="@string/autofill_apps_match_ellipsis" /> + android:editable="false" /> + android:text="@string/autofill_apps_never" /> diff --git a/app/src/main/res/layout/fragment_pwgen.xml b/app/src/main/res/layout/fragment_pwgen.xml index 50a253f3..6c04fb95 100644 --- a/app/src/main/res/layout/fragment_pwgen.xml +++ b/app/src/main/res/layout/fragment_pwgen.xml @@ -1,26 +1,26 @@ + android:layout_height="match_parent"> + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingBottom="20dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" + android:paddingTop="20dp" + tools:context=".MainActivityFragment"> + android:textAppearance="?android:attr/textAppearanceMedium" + android:textIsSelectable="true" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:text="@string/pwgen_numerals" /> + android:text="@string/pwgen_symbols" /> + android:text="@string/pwgen_uppercase" /> + android:text="@string/pwgen_ambiguous" /> @@ -79,10 +79,9 @@ 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" - /> + android:text="Length" + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:inputType="number" /> + android:text="Pronounceable" /> diff --git a/app/src/main/res/layout/fragment_show_ssh_key.xml b/app/src/main/res/layout/fragment_show_ssh_key.xml index 1c72faee..36808f37 100644 --- a/app/src/main/res/layout/fragment_show_ssh_key.xml +++ b/app/src/main/res/layout/fragment_show_ssh_key.xml @@ -1,30 +1,29 @@ - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingBottom="20dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" + android:paddingTop="20dp"> + android:textIsSelectable="true" /> + android:textSize="16sp" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_ssh_keygen.xml b/app/src/main/res/layout/fragment_ssh_keygen.xml index 321e77d0..dc1168d4 100644 --- a/app/src/main/res/layout/fragment_ssh_keygen.xml +++ b/app/src/main/res/layout/fragment_ssh_keygen.xml @@ -1,64 +1,62 @@ - + 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"> + android:text="@string/ssh_keygen_length" /> + android:spinnerMode="dropdown" /> - + android:layout_marginTop="8dp" + app:hintTextAppearance="@style/TextAppearance.AppCompat"> + android:inputType="textPassword" /> + android:text="@string/ssh_keygen_show_passphrase" /> - + android:layout_marginTop="8dp" + app:hintTextAppearance="@style/TextAppearance.AppCompat"> + + android:inputType="text" />