Add rounded corners to TaskMenu Items

Bug: 188168717
Test: Manual
Change-Id: I7cce42fb08f03a9689b4c5d56ed8208d6f60f7d7
This commit is contained in:
Vinit Nayak 2021-06-23 16:11:54 -07:00
parent bd51e6e3f3
commit d86a9948f9
4 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?android:attr/colorPrimary"/>
<corners android:radius="@dimen/task_menu_item_corner_radius"/>
</shape>

View File

@ -25,7 +25,7 @@
<TextView <TextView
android:id="@+id/task_name" android:id="@+id/task_name"
android:background="?android:attr/colorPrimary" android:background="@drawable/task_menu_item_bg"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"

View File

@ -21,7 +21,7 @@
android:orientation="vertical" android:orientation="vertical"
android:paddingTop="@dimen/task_card_menu_option_vertical_padding" android:paddingTop="@dimen/task_card_menu_option_vertical_padding"
android:paddingBottom="@dimen/task_card_menu_option_vertical_padding" android:paddingBottom="@dimen/task_card_menu_option_vertical_padding"
android:background="?android:attr/colorPrimary" android:background="@drawable/task_menu_item_bg"
android:theme="@style/PopupItem" > android:theme="@style/PopupItem" >
<View <View

View File

@ -24,6 +24,7 @@
<!-- Task Menu View --> <!-- Task Menu View -->
<dimen name="task_menu_corner_radius">22dp</dimen> <dimen name="task_menu_corner_radius">22dp</dimen>
<dimen name="task_menu_item_corner_radius">4dp</dimen>
<dimen name="overview_proactive_row_height">48dp</dimen> <dimen name="overview_proactive_row_height">48dp</dimen>
<dimen name="overview_proactive_row_bottom_margin">16dp</dimen> <dimen name="overview_proactive_row_bottom_margin">16dp</dimen>