From a170b946f7285be9427aab801b649570b8974210 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 26 Feb 2016 12:39:16 +0100 Subject: [PATCH] add ripple effect to buttons --- app/src/main/res/drawable-v21/ripple.xml | 12 ++++++++++++ app/src/main/res/drawable/ripple.xml | 13 +++++++++++++ app/src/main/res/layout/activity_main.xml | 2 ++ app/src/main/res/values/colors.xml | 1 + 4 files changed, 28 insertions(+) create mode 100644 app/src/main/res/drawable-v21/ripple.xml create mode 100644 app/src/main/res/drawable/ripple.xml diff --git a/app/src/main/res/drawable-v21/ripple.xml b/app/src/main/res/drawable-v21/ripple.xml new file mode 100644 index 000000000..252d09ebe --- /dev/null +++ b/app/src/main/res/drawable-v21/ripple.xml @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/app/src/main/res/drawable/ripple.xml b/app/src/main/res/drawable/ripple.xml new file mode 100644 index 000000000..339c3d70c --- /dev/null +++ b/app/src/main/res/drawable/ripple.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index cdd3e1ae3..4908248ca 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -11,6 +11,7 @@ android:layout_height="match_parent" android:layout_alignBottom="@+id/table_month" android:layout_alignTop="@+id/table_month" + android:background="@drawable/ripple" android:paddingBottom="@dimen/activity_margin" android:paddingRight="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin" @@ -34,6 +35,7 @@ android:layout_alignBottom="@+id/table_month" android:layout_alignParentRight="true" android:layout_alignTop="@+id/table_month" + android:background="@drawable/ripple" android:paddingBottom="@dimen/activity_margin" android:paddingLeft="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin" diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 3ab3e9cbc..546af719c 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -3,4 +3,5 @@ #3F51B5 #303F9F #FF4081 + #08000000