diff options
Diffstat (limited to 'car-qc-lib/res/drawable/qc_toggle_rotary_background.xml')
-rw-r--r-- | car-qc-lib/res/drawable/qc_toggle_rotary_background.xml | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml b/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml index 406c44c..c0eb106 100644 --- a/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml +++ b/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml @@ -14,21 +14,15 @@ ~ 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_focused="true" android:state_pressed="true"> - <shape android:shape="rectangle"> - <solid android:color="@color/car_ui_rotary_focus_pressed_fill_secondary_color"/> - <stroke android:width="@dimen/car_ui_rotary_focus_pressed_stroke_width" - android:color="@color/car_ui_rotary_focus_pressed_stroke_secondary_color"/> - <corners android:radius="@dimen/qc_toggle_rotary_background_radius" /> - </shape> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:width="@dimen/qc_toggle_rotary_shadow_size" + android:height="@dimen/qc_toggle_rotary_shadow_size" + android:start="@dimen/qc_toggle_rotary_shadow_padding" + android:top="@dimen/qc_toggle_rotary_shadow_padding" + android:drawable="@drawable/qc_toggle_rotary_shadow"> </item> - <item android:state_focused="true"> - <shape android:shape="rectangle"> - <solid android:color="@color/car_ui_rotary_focus_fill_secondary_color"/> - <stroke android:width="@dimen/car_ui_rotary_focus_stroke_width" - android:color="@color/car_ui_rotary_focus_stroke_secondary_color"/> - <corners android:radius="@dimen/qc_toggle_rotary_background_radius" /> - </shape> - </item> -</selector>
\ No newline at end of file + <item android:width="@dimen/qc_toggle_rotary_highlight_size" + android:height="@dimen/qc_toggle_rotary_highlight_size" + android:drawable="@drawable/qc_toggle_rotary_highlight"/> +</layer-list>
\ No newline at end of file |