1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <resources> 17 <!-- Attributes that can be customized on a com.android.car.radio.RadioPresetButton. --> 18 <declare-styleable name="RadioPresetButton"> 19 <!-- The station that is currently set on this preset (e.g. 96.5). --> 20 <attr name="presetStation" format="string" /> 21 22 <!-- The preset title. This is usually the number of the preset. For example, a radio 23 with 5 presets could have buttons with the numbers 01 - 05. --> 24 <attr name="presetTitle" format="string" /> 25 26 <!-- Whether or not this preset button will display the station that is currently set on it. --> 27 <attr name="presetDisplayEnabled" format="boolean" /> 28 29 <!-- Whether or not this preset is currently selected. --> 30 <attr name="presetSelected" format="boolean" /> 31 </declare-styleable> 32 33 <!-- Attributes for the playing state of com.android.car.radio.PlayPauseButton. --> 34 <declare-styleable name="PlayingState"> 35 <attr name="state_paused" format="boolean"/> 36 <attr name="state_playing" format="boolean"/> 37 </declare-styleable> 38 39 <!-- Attributes for customizing a CaoruselView. --> 40 <declare-styleable name="CarouselView"> 41 <attr name="topOffset" format="dimension" /> 42 <attr name="itemMargins" format="dimension" /> 43 </declare-styleable> 44 45 <!-- Attributes for customizing a RadioBandButton. --> 46 <declare-styleable name="RadioBandButton"> 47 <attr name="isBandSelected" format="boolean" /> 48 </declare-styleable> 49 </resources> 50