Make selected border wider
Fixes: 130400266
Test: visual
Change-Id: I67ebee6a11d2cda6238c005abde4ed296bc3be0b
diff --git a/res/drawable/option_border.xml b/res/drawable/option_border.xml
index 00c8613..6ce76c7 100644
--- a/res/drawable/option_border.xml
+++ b/res/drawable/option_border.xml
@@ -21,10 +21,5 @@
<corners android:radius="4dp" />
</shape>
</item>
- <item>
- <shape android:shape="rectangle">
- <stroke android:color="@color/option_border_color" android:width="@dimen/option_border_width" />
- <corners android:radius="4dp" />
- </shape>
- </item>
+ <item android:drawable="@drawable/option_border_edge" />
</ripple>
diff --git a/res/drawable/option_border_edge.xml b/res/drawable/option_border_edge.xml
new file mode 100644
index 0000000..943920e
--- /dev/null
+++ b/res/drawable/option_border_edge.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2019 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.
+-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_activated="true">
+ <shape android:shape="rectangle">
+ <stroke
+ android:color="@color/option_border_color"
+ android:width="@dimen/option_selected_border_width" />
+ <corners android:radius="4dp" />
+ </shape>
+ </item>
+ <item android:state_activated="false">
+ <shape android:shape="rectangle">
+ <stroke
+ android:color="@color/option_border_color"
+ android:width="@dimen/option_border_width" />
+ <corners android:radius="4dp" />
+ </shape>
+ </item>
+</selector>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 6ccf9bf..16f8964 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -88,6 +88,7 @@
<dimen name="component_shape_thumb_size">72dp</dimen>
<dimen name="option_border_width">2dp</dimen>
+ <dimen name="option_selected_border_width">3dp</dimen>
<!-- For a corner radius of this size or larger, we'll preview a rounded qsb widget. -->
<dimen name="roundCornerThreshold">16dp</dimen>