summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml
diff options
context:
space:
mode:
authorTimi Rautamäki <timi.rautamaki@gmail.com>2021-07-11 20:40:27 +0200
committerTimi Rautamäki <timi.rautamaki@gmail.com>2021-07-12 07:44:18 +0200
commit2f5b5ea433a1dd4328dfdf24d1f437a8e5a31a6e (patch)
treece460eabf802f3bc39cfc599b5703595debead31 /java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml
parent9f5f0ee9b232f53a12d28a269b25b54af2406702 (diff)
Dialer: improve search bar
* Make background color lighter * Update border radius * Update ripple to follow border radius * Remove the background color, use same as activity * Update the back-icon color to white/black for consistency Change-Id: I648a2bd0da47fec99d8a8457c70451e77ed9f8be
Diffstat (limited to 'java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml')
-rw-r--r--java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml17
1 files changed, 12 insertions, 5 deletions
diff --git a/java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml b/java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml
index 88f5a04ca..2130db443 100644
--- a/java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml
+++ b/java/com/android/dialer/main/impl/toolbar/res/drawable/search_bar_background_rounded_corners.xml
@@ -14,8 +14,15 @@
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
-<shape xmlns:android="http://schemas.android.com/apk/res/android"
- android:shape="rectangle">
- <solid android:color="?android:attr/colorBackgroundFloating"/>
- <corners android:radius="2dp"/>
-</shape>
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="@color/dialer_ripple_color">
+
+ <item android:id="@android:id/mask">
+ <shape android:shape="rectangle">
+ <solid android:color="@android:color/white" />
+ <corners android:radius="8dp" />
+ </shape>
+ </item>
+
+ <item android:drawable="@drawable/search_bar_background_rounded_corners_shape" />
+</ripple>