From 1858fb5e52eb764924d1b57dcd6c395ead54cbc3 Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 17 Aug 2014 01:13:46 +0200 Subject: major ui improvement to the list using SwipeListView --- .../main/res/drawable-xxhdpi/gray_rectangle.xml | 24 ++++++ app/src/main/res/layout/child_row_layout.xml | 4 +- app/src/main/res/layout/decrypt_layout.xml | 46 ++--------- app/src/main/res/layout/fragment_password_list.xml | 19 +++-- app/src/main/res/layout/password_row_layout.xml | 92 ++++++++++++++++------ 5 files changed, 117 insertions(+), 68 deletions(-) create mode 100644 app/src/main/res/drawable-xxhdpi/gray_rectangle.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable-xxhdpi/gray_rectangle.xml b/app/src/main/res/drawable-xxhdpi/gray_rectangle.xml new file mode 100644 index 00000000..b1858c80 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/gray_rectangle.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/child_row_layout.xml b/app/src/main/res/layout/child_row_layout.xml index 0fc5e33d..75efefad 100644 --- a/app/src/main/res/layout/child_row_layout.xml +++ b/app/src/main/res/layout/child_row_layout.xml @@ -2,7 +2,9 @@ + android:layout_height="match_parent" + android:id="@+id/child_row_layout" + android:layout_marginTop="@dimen/activity_vertical_margin"> - + android:background="@drawable/rectangle" + android:orientation="vertical"> + android:layout_marginLeft="@dimen/activity_horizontal_margin"/> - - - - - - - + android:layout_marginLeft="@dimen/activity_horizontal_margin"/> + - - + swipe:swipeFrontView="@+id/front" + swipe:swipeBackView="@+id/back" + swipe:swipeActionLeft="reveal" + swipe:swipeActionRight="reveal" + swipe:swipeMode="both" + swipe:swipeCloseAllItemsWhenMoveList="true" + swipe:swipeOpenOnLongPress="true" + swipe:swipeAnimationTime="200" + android:listSelector="#00000000"/> + 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 @@ - - + + + - - + android:tag="back" + android:background="@drawable/gray_rectangle" + android:layout_gravity="left|center_vertical"> + + + + + + + + + + + + + + -- cgit v1.2.3