1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<selector 19 xmlns:android="http://schemas.android.com/apk/res/android"> 20 21 <item android:state_pressed="true"> 22 <set> 23 <objectAnimator 24 android:duration="200" 25 android:propertyName="scaleX" 26 android:valueTo="1.0" 27 android:valueType="floatType"/> 28 <objectAnimator 29 android:duration="200" 30 android:propertyName="scaleY" 31 android:valueTo="1.0" 32 android:valueType="floatType"/> 33 </set> 34 </item> 35 <item android:state_focused="true"> 36 <set> 37 <objectAnimator 38 android:duration="200" 39 android:propertyName="scaleX" 40 android:valueFrom="1.0" 41 android:valueTo="1.1" 42 android:valueType="floatType"/> 43 <objectAnimator 44 android:duration="200" 45 android:propertyName="scaleY" 46 android:valueFrom="1.0" 47 android:valueTo="1.1" 48 android:valueType="floatType"/> 49 </set> 50 </item> 51 <item android:state_focused="false"> 52 <set> 53 <objectAnimator 54 android:duration="200" 55 android:propertyName="scaleX" 56 android:valueFrom="1.1" 57 android:valueTo="1.0" 58 android:valueType="floatType"/> 59 <objectAnimator 60 android:duration="200" 61 android:propertyName="scaleY" 62 android:valueFrom="1.1" 63 android:valueTo="1.0" 64 android:valueType="floatType"/> 65 </set> 66 </item> 67</selector>