From a0b3a7fe5dc50f45a617a9d57eda810141910080 Mon Sep 17 00:00:00 2001 From: Stephan Hagios Date: Mon, 22 Jan 2018 21:36:14 +0100 Subject: [PATCH] used background borderless for nicer ripple effect (#189) --- app/src/main/res/layout/view_number_pad.xml | 25 +-------------------- app/src/main/res/values/styles.xml | 2 ++ 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/app/src/main/res/layout/view_number_pad.xml b/app/src/main/res/layout/view_number_pad.xml index 41ce9261..5dfa744d 100644 --- a/app/src/main/res/layout/view_number_pad.xml +++ b/app/src/main/res/layout/view_number_pad.xml @@ -18,8 +18,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="1" android:text="1" /> @@ -29,8 +27,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="2" android:text="2" /> @@ -40,8 +36,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="3" android:text="3" /> @@ -50,7 +44,6 @@ android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" - android:gravity="center"> @@ -70,8 +61,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="5" android:text="5" /> @@ -81,8 +70,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="6" android:text="6" /> @@ -99,8 +86,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="7" android:text="7" /> @@ -110,8 +95,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="8" android:text="8" /> @@ -121,8 +104,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:tag="9" android:text="9" /> @@ -139,8 +120,6 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" - android:gravity="center" android:text="." /> @@ -160,7 +137,7 @@ android:layout_height="36sp" android:layout_gravity="center" android:layout_weight="1" - android:background="?android:attr/selectableItemBackground" + android:background="?android:attr/selectableItemBackgroundBorderless" android:src="@drawable/ic_backspace_black_36dp" /> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index bf70fb40..fa5931fd 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -119,6 +119,8 @@