1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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<animated-selector 18 xmlns:android="http://schemas.android.com/apk/res/android"> 19 <!-- 20 State corresponds with the following icons: 21 state_first => lock icon 22 state_middle => fingerprint icon 23 state_last => unlocked icon 24 25 state_single 26 = true => AOD 27 = false => LS 28 --> 29 30 <item 31 android:id="@+id/locked" 32 android:drawable="@drawable/ic_lock" 33 android:state_first="true" 34 android:state_single="false"/> 35 36 <item 37 android:id="@+id/locked_fp" 38 android:state_middle="true" 39 android:state_single="false" 40 android:drawable="@drawable/ic_kg_fingerprint" /> 41 42 <item 43 android:id="@+id/unlocked" 44 android:state_last="true" 45 android:state_single="false" 46 android:drawable="@drawable/ic_unlocked" /> 47 48 <item 49 android:id="@+id/locked_aod" 50 android:state_first="true" 51 android:state_single="true" 52 android:drawable="@drawable/ic_lock_aod" /> 53 <item 54 android:id="@+id/unlocked_aod" 55 android:state_last="true" 56 android:state_single="true" 57 android:drawable="@drawable/ic_unlocked_aod" /> 58 59 <item 60 android:id="@+id/no_icon" 61 android:drawable="@color/transparent" /> 62 63 <transition 64 android:fromId="@id/locked" 65 android:toId="@id/unlocked" 66 android:drawable="@drawable/lock_to_unlock" /> 67 68 <transition 69 android:fromId="@id/locked_fp" 70 android:toId="@id/unlocked" 71 android:drawable="@drawable/fp_to_unlock" /> 72 73 <transition 74 android:fromId="@id/unlocked" 75 android:toId="@id/locked_fp" 76 android:drawable="@drawable/unlock_to_fp" /> 77 78 <transition 79 android:fromId="@id/locked_aod" 80 android:toId="@id/locked" 81 android:drawable="@drawable/lock_aod_to_ls" /> 82 83 <transition 84 android:fromId="@id/locked" 85 android:toId="@id/locked_aod" 86 android:drawable="@drawable/lock_ls_to_aod" /> 87 88 <transition 89 android:fromId="@id/unlocked_aod" 90 android:toId="@id/unlocked" 91 android:drawable="@drawable/unlocked_aod_to_ls" /> 92 93 <transition 94 android:fromId="@id/unlocked" 95 android:toId="@id/unlocked_aod" 96 android:drawable="@drawable/unlocked_ls_to_aod" /> 97 98 <transition 99 android:fromId="@id/unlocked" 100 android:toId="@id/locked_aod" 101 android:drawable="@drawable/unlocked_to_aod_lock" /> 102 103 <transition 104 android:fromId="@id/unlocked" 105 android:toId="@id/locked" 106 android:drawable="@drawable/unlocked_to_locked" /> 107 108 <transition 109 android:fromId="@id/locked_fp" 110 android:toId="@id/locked" 111 android:drawable="@drawable/fp_to_locked" /> 112</animated-selector> 113