1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 * Copyright (c) 2017, The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16*/ 17--> 18<resources> 19 <style name="TextAppearance.CarUi.Body1.SingleLine" parent="TextAppearance.CarUi.Body1"> 20 <item name="android:maxLines">1</item> 21 <item name="android:ellipsize">marquee</item> 22 </style> 23 24 <style name="TextAppearance.CarUi.Body2.SingleLine" parent="TextAppearance.CarUi.Body2"> 25 <item name="android:maxLines">1</item> 26 <item name="android:ellipsize">end</item> 27 </style> 28 29 <style name="OverviewButton" parent="ButtonStyle"> 30 <item name="android:layout_width">@dimen/overview_icon_size</item> 31 <item name="android:layout_height">@dimen/overview_icon_size</item> 32 <item name="android:padding">6dp</item> 33 <item name="android:scaleType">fitCenter</item> 34 <item name="android:clickable">true</item> 35 </style> 36 37 <style name="ButtonStyle" parent="Widget.AppCompat.Button"> 38 <item name="android:background">@drawable/button_background</item> 39 </style> 40 41 <style name="KitchenSinkActivityDividerStyle" parent="@style/Preference.CarUi.Divider" /> 42 43 <style name="RadioButtonStyle" parent="Widget.AppCompat.CompoundButton.RadioButton"> 44 <item name="android:background">@drawable/focus_highlight_background</item> 45 </style> 46 47 <style name="CheckBoxStyle" parent="Widget.AppCompat.CompoundButton.CheckBox"> 48 <item name="android:background">@drawable/focus_highlight_background</item> 49 </style> 50 51 <style name="SpinnerStyle" parent="Widget.AppCompat.Spinner"> 52 <item name="android:background">@drawable/spinner_background</item> 53 </style> 54 55 <style name="KitchenSinkActivityTheme" parent="Theme.AppCompat.NoActionBar"> 56 <item name="android:textSize">24sp</item> 57 <item name="android:buttonStyle">@style/ButtonStyle</item> 58 <item name="android:radioButtonStyle">@style/RadioButtonStyle</item> 59 <item name="android:checkboxStyle">@style/CheckBoxStyle</item> 60 <item name="android:spinnerStyle">@style/SpinnerStyle</item> 61 </style> 62</resources> 63