From 0be508c1665a94632957fb43b1482bc3c98954b5 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Fri, 11 Dec 2020 13:45:52 -0800 Subject: Add rotary highlight to switches Since the rotary highlight has to expand around the switch, the switch view must be made bigger. The switch was smaller than the minimum touch target anyways, so this should be an ok change to make. Bug: 174490425 Test: Manually Change-Id: Ie34969cf7085835cad901aa4c542ab0d206b98a4 --- core/res/res/drawable-car/car_switch_thumb.xml | 21 +++++----- core/res/res/drawable-car/car_switch_track.xml | 53 ++++++++++++++++++++++++++ core/res/res/values/dimens_car.xml | 8 ++++ 3 files changed, 73 insertions(+), 9 deletions(-) create mode 100644 core/res/res/drawable-car/car_switch_track.xml diff --git a/core/res/res/drawable-car/car_switch_thumb.xml b/core/res/res/drawable-car/car_switch_thumb.xml index 03efc189aa95..66cf4438418d 100644 --- a/core/res/res/drawable-car/car_switch_thumb.xml +++ b/core/res/res/drawable-car/car_switch_thumb.xml @@ -14,12 +14,15 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - + + + + + + + + diff --git a/core/res/res/drawable-car/car_switch_track.xml b/core/res/res/drawable-car/car_switch_track.xml new file mode 100644 index 000000000000..cb0b9beeeab6 --- /dev/null +++ b/core/res/res/drawable-car/car_switch_track.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/values/dimens_car.xml b/core/res/res/values/dimens_car.xml index 2c4f4c89ab81..c3cd80b1edda 100644 --- a/core/res/res/values/dimens_car.xml +++ b/core/res/res/values/dimens_car.xml @@ -84,6 +84,14 @@ @dimen/car_radius_1 56dp 76dp + 75dp + + + + + 24dp + 26dp + 14dp 6dp -- cgit v1.2.3-59-g8ed1b