From 24892e6a9555f36a5d6cbe5658edb6f51ab85eba Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 19 Oct 2014 16:45:54 +0200 Subject: Using RecyclerView rather than ListView --- app/src/main/res/layout/activity_pwdstore.xml | 4 - app/src/main/res/layout/fragment_password_grid.xml | 20 ----- app/src/main/res/layout/fragment_password_list.xml | 25 ------ app/src/main/res/layout/password_recycler_view.xml | 16 ++++ app/src/main/res/layout/password_row_layout.xml | 94 ++++++---------------- 5 files changed, 42 insertions(+), 117 deletions(-) delete mode 100644 app/src/main/res/layout/fragment_password_grid.xml delete mode 100644 app/src/main/res/layout/fragment_password_list.xml create mode 100644 app/src/main/res/layout/password_recycler_view.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_pwdstore.xml b/app/src/main/res/layout/activity_pwdstore.xml index 1e6f1e41..b7074083 100644 --- a/app/src/main/res/layout/activity_pwdstore.xml +++ b/app/src/main/res/layout/activity_pwdstore.xml @@ -2,10 +2,6 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingLeft="@dimen/activity_horizontal_margin" - android:paddingRight="@dimen/activity_horizontal_margin" - android:paddingTop="@dimen/activity_vertical_margin" - android:paddingBottom="@dimen/activity_vertical_margin" android:background="#eee" tools:context=".pwdstore" android:orientation="vertical"> diff --git a/app/src/main/res/layout/fragment_password_grid.xml b/app/src/main/res/layout/fragment_password_grid.xml deleted file mode 100644 index b23aa4d3..00000000 --- a/app/src/main/res/layout/fragment_password_grid.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - diff --git a/app/src/main/res/layout/fragment_password_list.xml b/app/src/main/res/layout/fragment_password_list.xml deleted file mode 100644 index 43a8a91b..00000000 --- a/app/src/main/res/layout/fragment_password_list.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - diff --git a/app/src/main/res/layout/password_recycler_view.xml b/app/src/main/res/layout/password_recycler_view.xml new file mode 100644 index 00000000..c50f5952 --- /dev/null +++ b/app/src/main/res/layout/password_recycler_view.xml @@ -0,0 +1,16 @@ + + + + + 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 @@ - + - - - - - - - - - - - - - - - - + android:padding="8dp" + android:textStyle="bold" + android:layout_gravity="center_vertical" + /> + + \ No newline at end of file -- cgit v1.2.3