diff options
| author | zeapo <mohamed@zenadi.com> | 2014-10-19 16:45:54 +0200 |
|---|---|---|
| committer | zeapo <mohamed@zenadi.com> | 2014-10-19 16:45:54 +0200 |
| commit | 24892e6a9555f36a5d6cbe5658edb6f51ab85eba (patch) | |
| tree | 1e500233aa887e8b55aa6bbd6b70fb303b11e995 /app/src/main/res/layout/password_row_layout.xml | |
| parent | 83c3231ab02fcfa40d369248c257a80579988a4b (diff) | |
| download | HardenedPass-24892e6a9555f36a5d6cbe5658edb6f51ab85eba.tar.gz HardenedPass-24892e6a9555f36a5d6cbe5658edb6f51ab85eba.zip | |
Using RecyclerView rather than ListView
Diffstat (limited to 'app/src/main/res/layout/password_row_layout.xml')
| -rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 94 |
1 files changed, 26 insertions, 68 deletions
diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml index 05bf3457..3636a20b 100644 --- a/app/src/main/res/layout/password_row_layout.xml +++ b/app/src/main/res/layout/password_row_layout.xml @@ -1,71 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="fill_parent"> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/front" + android:tag="front" + android:background="@drawable/rectangle" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp" + android:layout_gravity="start|center_vertical"> - - <GridLayout - android:id="@+id/back" - android:orientation="horizontal" - android:layout_width="match_parent" + <TextView + android:id="@+id/type" + android:text="TYPE" + android:layout_width="wrap_content" android:layout_height="wrap_content" - 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_eye" - 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> + 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>
\ No newline at end of file |
