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/layout | |
parent | 4fe2baccf1b6cb6fe944fa49e34ab794ee53e5c5 (diff) |
Better distinction between categories and passwords, multilevel categories
Diffstat (limited to 'app/src/main/res/layout')
-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 |
2 files changed, 67 insertions, 17 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> |