diff options
| author | zeapo <mohamed@zenadi.com> | 2014-08-17 01:13:46 +0200 |
|---|---|---|
| committer | zeapo <mohamed@zenadi.com> | 2014-08-17 01:13:46 +0200 |
| commit | 1858fb5e52eb764924d1b57dcd6c395ead54cbc3 (patch) | |
| tree | 5eb506679c2b108a151388798e8be495fc1df0e3 /app/src/main/res/layout/password_row_layout.xml | |
| parent | 3debc057071e4468921f99f2ebeb59f54eae9307 (diff) | |
| download | HardenedPass-1858fb5e52eb764924d1b57dcd6c395ead54cbc3.tar.gz HardenedPass-1858fb5e52eb764924d1b57dcd6c395ead54cbc3.zip | |
major ui improvement to the list using SwipeListView
Diffstat (limited to 'app/src/main/res/layout/password_row_layout.xml')
| -rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 92 |
1 files changed, 69 insertions, 23 deletions
diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml index f8d656fd..641f4f85 100644 --- a/app/src/main/res/layout/password_row_layout.xml +++ b/app/src/main/res/layout/password_row_layout.xml @@ -1,25 +1,71 @@ <?xml version="1.0" encoding="utf-8"?> -<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:orientation="horizontal"> - <TextView - android:id="@+id/type" - android:text="TYPE" - android:layout_column="0" - android:layout_width="wrap_content" +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + + <GridLayout + android:id="@+id/back" + android:orientation="horizontal" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="8dp" - android:textStyle="bold" - android:layout_gravity="center_vertical" - /> - <TextView - android:id="@+id/label" - android:text="FILE_NAME" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:padding="8dp"/> -</GridLayout> + android:tag="back" + android:background="@drawable/gray_rectangle" + android:layout_gravity="left|center_vertical"> + + <TextView + android:id="@+id/label_back" + android:text="FILE_NAME" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="8dp" + android:layout_column="0"/> + + <ImageButton + android:id="@+id/crypto_delete_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ico_del" + android:background="@drawable/red_rectangle" + android:layout_gravity="center_vertical" + android:layout_column="2"/> + + <ImageButton + android:id="@+id/crypto_show_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ico_key" + android:background="@drawable/blue_rectangle" + android:layout_gravity="center_vertical" + android:layout_marginLeft="8dp" + android:layout_column="3"/> + </GridLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="fill_parent" + android:id="@+id/front" + android:tag="front" + android:background="@android:color/white" + android:layout_gravity="left|center_vertical"> + + <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" + android:layout_gravity="center_vertical" + /> + <TextView + android:id="@+id/label" + android:text="FILE_NAME" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="8dp"/> + </LinearLayout> +</FrameLayout> |
