1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2015 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<animated-selector xmlns:android="http://schemas.android.com/apk/res/android"> 19 <item android:state_enabled="false" android:state_checked="true"> 20 <bitmap 21 android:src="@drawable/ic_tvsidepanel_lock_to_on_015" 22 android:tint="?android:attr/colorControlActivated" 23 android:alpha="?android:attr/disabledAlpha" /> 24 </item> 25 <item android:state_enabled="false"> 26 <bitmap 27 android:src="@drawable/ic_tvsidepanel_lock_to_on_000" 28 android:tint="?android:attr/colorControlNormal" 29 android:alpha="?android:attr/disabledAlpha" /> 30 </item> 31 <item android:state_checked="true" android:id="@+id/on"> 32 <bitmap 33 android:src="@drawable/ic_tvsidepanel_lock_to_on_015" 34 android:tint="?android:attr/colorControlActivated" /> 35 </item> 36 <item android:id="@+id/off"> 37 <bitmap 38 android:src="@drawable/ic_tvsidepanel_lock_to_on_000" 39 android:tint="?android:attr/colorControlNormal" /> 40 </item> 41 <transition android:fromId="@+id/off" android:toId="@+id/on"> 42 <animation-list> 43 <item android:duration="15"> 44 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_000" android:tint="?android:attr/colorControlNormal" /> 45 </item> 46 <item android:duration="15"> 47 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_001" android:tint="?android:attr/colorControlNormal" /> 48 </item> 49 <item android:duration="15"> 50 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_002" android:tint="?android:attr/colorControlNormal" /> 51 </item> 52 <item android:duration="15"> 53 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_003" android:tint="?android:attr/colorControlNormal" /> 54 </item> 55 <item android:duration="15"> 56 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_004" android:tint="?android:attr/colorControlNormal" /> 57 </item> 58 <item android:duration="15"> 59 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_005" android:tint="?android:attr/colorControlNormal" /> 60 </item> 61 <item android:duration="15"> 62 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_006" android:tint="?android:attr/colorControlNormal" /> 63 </item> 64 <item android:duration="15"> 65 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_007" android:tint="?android:attr/colorControlNormal" /> 66 </item> 67 <item android:duration="15"> 68 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_008" android:tint="?android:attr/colorControlActivated" /> 69 </item> 70 <item android:duration="15"> 71 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_009" android:tint="?android:attr/colorControlActivated" /> 72 </item> 73 <item android:duration="15"> 74 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_010" android:tint="?android:attr/colorControlActivated" /> 75 </item> 76 <item android:duration="15"> 77 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_011" android:tint="?android:attr/colorControlActivated" /> 78 </item> 79 <item android:duration="15"> 80 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_012" android:tint="?android:attr/colorControlActivated" /> 81 </item> 82 <item android:duration="15"> 83 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_013" android:tint="?android:attr/colorControlActivated" /> 84 </item> 85 <item android:duration="15"> 86 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_014" android:tint="?android:attr/colorControlActivated" /> 87 </item> 88 <item android:duration="15"> 89 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_015" android:tint="?android:attr/colorControlActivated" /> 90 </item> 91 </animation-list> 92 </transition> 93 <transition android:fromId="@+id/on" android:toId="@+id/off"> 94 <animation-list> 95 <item android:duration="15"> 96 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_000" android:tint="?android:attr/colorControlActivated" /> 97 </item> 98 <item android:duration="15"> 99 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_001" android:tint="?android:attr/colorControlActivated" /> 100 </item> 101 <item android:duration="15"> 102 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_002" android:tint="?android:attr/colorControlActivated" /> 103 </item> 104 <item android:duration="15"> 105 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_003" android:tint="?android:attr/colorControlActivated" /> 106 </item> 107 <item android:duration="15"> 108 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_004" android:tint="?android:attr/colorControlActivated" /> 109 </item> 110 <item android:duration="15"> 111 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_005" android:tint="?android:attr/colorControlActivated" /> 112 </item> 113 <item android:duration="15"> 114 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_006" android:tint="?android:attr/colorControlActivated" /> 115 </item> 116 <item android:duration="15"> 117 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_007" android:tint="?android:attr/colorControlActivated" /> 118 </item> 119 <item android:duration="15"> 120 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_008" android:tint="?android:attr/colorControlNormal" /> 121 </item> 122 <item android:duration="15"> 123 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_009" android:tint="?android:attr/colorControlNormal" /> 124 </item> 125 <item android:duration="15"> 126 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_010" android:tint="?android:attr/colorControlNormal" /> 127 </item> 128 <item android:duration="15"> 129 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_011" android:tint="?android:attr/colorControlNormal" /> 130 </item> 131 <item android:duration="15"> 132 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_012" android:tint="?android:attr/colorControlNormal" /> 133 </item> 134 <item android:duration="15"> 135 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_013" android:tint="?android:attr/colorControlNormal" /> 136 </item> 137 <item android:duration="15"> 138 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_014" android:tint="?android:attr/colorControlNormal" /> 139 </item> 140 <item android:duration="15"> 141 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_off_015" android:tint="?android:attr/colorControlNormal" /> 142 </item> 143 </animation-list> 144 </transition> 145</animated-selector> 146