diff options
author | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2015-07-04 16:05:38 +0200 |
---|---|---|
committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2015-07-04 16:05:38 +0200 |
commit | 97c5c5da9572de48842dc3739c260af75c4915f8 (patch) | |
tree | 3163df426ac347377e2b45e07e9916d0c2d1330a /app/src/main/res | |
parent | 679d7f111e295d3a2b90ebafa8c4149d868bf30f (diff) | |
parent | 8c885882dc0642f2dbf313980441911edd9f9cc7 (diff) |
Merge pull request #99 from wongma7/master
Multi-select (for password deletion)
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/password_row_background.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/drawable/selected_rectangle.xml | 21 | ||||
-rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 2 |
3 files changed, 27 insertions, 1 deletions
diff --git a/app/src/main/res/drawable/password_row_background.xml b/app/src/main/res/drawable/password_row_background.xml new file mode 100644 index 00000000..8f39b056 --- /dev/null +++ b/app/src/main/res/drawable/password_row_background.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_selected="true" android:drawable="@drawable/selected_rectangle" /> + <item android:drawable="@drawable/rectangle" /> +</selector>
\ No newline at end of file diff --git a/app/src/main/res/drawable/selected_rectangle.xml b/app/src/main/res/drawable/selected_rectangle.xml new file mode 100644 index 00000000..ec8d2ad8 --- /dev/null +++ b/app/src/main/res/drawable/selected_rectangle.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item> + <shape android:shape="rectangle" + android:dither="true"> + <corners android:radius="2dp"/> + <solid android:color="@color/blue_grey_200" /> + + </shape> + </item> + + <item android:bottom="2dp" android:left="1dp" android:right="1dp"> + <shape android:shape="rectangle" android:dither="true"> + <corners android:radius="2dp" /> + <solid android:color="@color/blue_grey_100" /> + + <padding android:bottom="2dp" android:left="1dp"/> + </shape> + </item> +</layer-list>
\ No newline at end of file diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml index ab6f31af..99ee58eb 100644 --- a/app/src/main/res/layout/password_row_layout.xml +++ b/app/src/main/res/layout/password_row_layout.xml @@ -3,7 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@drawable/rectangle" + android:background="@drawable/password_row_background" android:layout_marginTop="4dp" android:layout_marginBottom="4dp" android:layout_gravity="start|center_vertical"> |