diff options
author | Zeapo <mohamed@zenadi.com> | 2014-08-01 00:17:05 +0100 |
---|---|---|
committer | Zeapo <mohamed@zenadi.com> | 2014-08-01 00:17:05 +0100 |
commit | a0263aabadf04869da704a0075f01bfde98f279a (patch) | |
tree | f2c95abaca52becba061761b4b163a188eaf921a /app/src/main/res | |
parent | 4fe2baccf1b6cb6fe944fa49e34ab794ee53e5c5 (diff) |
Better distinction between categories and passwords, multilevel categories
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_pgp_handler.xml | 62 | ||||
-rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 22 | ||||
-rw-r--r-- | app/src/main/res/menu/pgp_handler.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/menu/pwdstore.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 2 |
5 files changed, 74 insertions, 19 deletions
diff --git a/app/src/main/res/layout/activity_pgp_handler.xml b/app/src/main/res/layout/activity_pgp_handler.xml index 159a6a9b..5095b32c 100644 --- a/app/src/main/res/layout/activity_pgp_handler.xml +++ b/app/src/main/res/layout/activity_pgp_handler.xml @@ -6,18 +6,58 @@ android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" - tools:context="com.zeapo.pwdstore.PgpHandler"> + tools:context="com.zeapo.pwdstore.crypto.PgpHandler"> - <TextView - android:id="@+id/hhh" - android:text="@string/hello_world" - android:layout_width="wrap_content" - android:layout_height="wrap_content" /> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> - <Button - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:onClick="getKey" - android:text="getkey"/> + <GridLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:text="Large Text" + android:id="@+id/crypto_account_name" + android:layout_row="0" + android:layout_column="0" /> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Change account" + android:id="@+id/button" + android:layout_row="0" + android:layout_column="2" /> + </GridLayout> + + <View + android:layout_width="fill_parent" + android:layout_marginBottom="4dp" + android:layout_height="1dp" + android:background="@android:color/darker_gray"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="New Text" + android:id="@+id/crypto_handler_name"/> + + + <Button + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Select Key-id" + android:onClick="getKeyID"/> + + <Button + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Show password" + android:onClick="decrypt"/> + </LinearLayout> </RelativeLayout> diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml index 4a562f76..85f576e8 100644 --- a/app/src/main/res/layout/password_row_layout.xml +++ b/app/src/main/res/layout/password_row_layout.xml @@ -1,13 +1,23 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/pass_row_layout" - android:background="@drawable/rectangle"> + android:background="@drawable/rectangle" + android:orientation="horizontal"> + <TextView + android:id="@+id/type" + android:text="TYPE" + android:layout_column="0" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="8dp" + android:textStyle="bold" + /> <TextView android:id="@+id/label" - android:layout_width="match_parent" - android:layout_height="match_parent" + android:text="FILE_NAME" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:padding="8dp"/> - -</LinearLayout> +</GridLayout> diff --git a/app/src/main/res/menu/pgp_handler.xml b/app/src/main/res/menu/pgp_handler.xml index bf981e24..26347a3a 100644 --- a/app/src/main/res/menu/pgp_handler.xml +++ b/app/src/main/res/menu/pgp_handler.xml @@ -1,6 +1,6 @@ <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - tools:context="com.zeapo.pwdstore.PgpHandler" > + tools:context="com.zeapo.pwdstore.crypto.PgpHandler" > <item android:id="@+id/action_settings" android:title="@string/action_settings" android:orderInCategory="100" diff --git a/app/src/main/res/menu/pwdstore.xml b/app/src/main/res/menu/pwdstore.xml index a9c41638..c8acb162 100644 --- a/app/src/main/res/menu/pwdstore.xml +++ b/app/src/main/res/menu/pwdstore.xml @@ -1,6 +1,10 @@ <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context=".pwdstore" > + <item android:id="@+id/referesh" + android:title="Refresh" + android:showAsAction="ifRoom" + android:icon="@android:drawable/ic_popup_sync"/> <item android:id="@+id/user_pref" android:title="Settings" @@ -8,3 +12,4 @@ android:showAsAction="ifRoom" android:icon="@android:drawable/ic_menu_manage"/> </menu> + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index ff6c9d2c..e0c5aaeb 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,7 +1,7 @@ <resources> <!-- Base application theme. --> - <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> + <style name="AppTheme" parent="android:Theme.Holo.Light"> <!-- Customize your theme here. --> </style> |