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<animated-selector xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:aapt="http://schemas.android.com/aapt"> 20 <item 21 android:id="@+id/hd_attempting" 22 android:drawable="@drawable/avd_hd_attempting" 23 android:state_activated="false"/> 24 <item 25 android:id="@+id/hd_enabled" 26 android:drawable="@drawable/quantum_ic_hd_vd_theme_24" 27 android:state_activated="true"/> 28 29 <transition 30 android:fromId="@id/hd_attempting" 31 android:toId="@id/hd_enabled"> 32 <animated-vector android:drawable="@drawable/vd_hd_attempting"> 33 <target android:name="hdMask"> 34 <aapt:attr name="android:animation"> 35 <objectAnimator 36 android:duration="150" 37 android:propertyName="pathData" 38 android:startOffset="45" 39 android:valueFrom="M12, 12 m 0, -9 a 9,9 0 1,1 0,18 a 9,9 0 1,1 0,-18" 40 android:valueTo="M12, 12 m 0, -18 a 18,18 0 1,1 0,36 a 18,18 0 1,1 0,-36" 41 android:valueType="pathType"/> 42 </aapt:attr> 43 </target> 44 45 <target android:name="hdRoot"> 46 <aapt:attr name="android:animation"> 47 <set android:ordering="sequentially"> 48 <set> 49 <objectAnimator 50 android:duration="45" 51 android:interpolator="@anim/hd_scale_interpolator" 52 android:propertyName="scaleX" 53 android:valueFrom="1" 54 android:valueTo="0.9"/> 55 <objectAnimator 56 android:duration="45" 57 android:interpolator="@anim/hd_scale_interpolator" 58 android:propertyName="scaleY" 59 android:valueFrom="1" 60 android:valueTo="0.9"/> 61 </set> 62 <set> 63 <objectAnimator 64 android:duration="120" 65 android:interpolator="@anim/hd_scale_interpolator2" 66 android:propertyName="scaleX" 67 android:valueFrom="0.9" 68 android:valueTo="1.2"/> 69 <objectAnimator 70 android:duration="120" 71 android:interpolator="@anim/hd_scale_interpolator2" 72 android:propertyName="scaleY" 73 android:valueFrom="0.9" 74 android:valueTo="1.2"/> 75 </set> 76 <set> 77 <objectAnimator 78 android:duration="120" 79 android:interpolator="@anim/hd_scale_interpolator2" 80 android:propertyName="scaleX" 81 android:valueFrom="1.2" 82 android:valueTo="1"/> 83 <objectAnimator 84 android:duration="120" 85 android:interpolator="@anim/hd_scale_interpolator2" 86 android:propertyName="scaleY" 87 android:valueFrom="1.2" 88 android:valueTo="1"/> 89 </set> 90 </set> 91 </aapt:attr> 92 </target> 93 94 <target android:name="root"> 95 <aapt:attr name="android:animation"> 96 <objectAnimator 97 android:duration="150" 98 android:interpolator="@android:interpolator/fast_out_slow_in" 99 android:propertyName="alpha" 100 android:startOffset="45" 101 android:valueFrom="0.5" 102 android:valueTo="1"/> 103 </aapt:attr> 104 </target> 105 </animated-vector> 106 </transition> 107 108</animated-selector>