1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2023 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 17<selector xmlns:android="http://schemas.android.com/apk/res/android"> 18 19 <item 20 android:state_focused="true" 21 android:state_pressed="true"> 22 <set> 23 <objectAnimator 24 android:duration="@integer/default_focused_animation_duration_ms" 25 android:propertyName="elevation" 26 android:valueTo="@dimen/feedback_consent_action_button_focused_elevation" 27 android:valueType="floatType" /> 28 <objectAnimator 29 android:duration="@integer/default_focused_animation_duration_ms" 30 android:propertyName="scaleX" 31 android:valueTo="1.02" 32 android:valueType="floatType" /> 33 <objectAnimator 34 android:duration="@integer/default_focused_animation_duration_ms" 35 android:propertyName="scaleY" 36 android:valueTo="1.02" 37 android:valueType="floatType" /> 38 </set> 39 </item> 40 41 <item android:state_focused="true"> 42 <set> 43 <objectAnimator 44 android:duration="@integer/default_focused_animation_duration_ms" 45 android:propertyName="elevation" 46 android:valueTo="@dimen/feedback_consent_action_button_focused_elevation" 47 android:valueType="floatType" /> 48 <objectAnimator 49 android:duration="@integer/default_focused_animation_duration_ms" 50 android:propertyName="scaleX" 51 android:valueTo="1.05" 52 android:valueType="floatType" /> 53 <objectAnimator 54 android:duration="@integer/default_focused_animation_duration_ms" 55 android:propertyName="scaleY" 56 android:valueTo="1.05" 57 android:valueType="floatType" /> 58 </set> 59 </item> 60 <item android:state_focused="false"> 61 <set> 62 <objectAnimator 63 android:duration="@integer/default_focused_animation_duration_ms" 64 android:propertyName="elevation" 65 android:valueTo="@dimen/feedback_consent_action_button_base_elevation" 66 android:valueType="floatType" /> 67 <objectAnimator 68 android:duration="@integer/default_focused_animation_duration_ms" 69 android:propertyName="scaleX" 70 android:valueTo="1.0" 71 android:valueType="floatType" /> 72 <objectAnimator 73 android:duration="@integer/default_focused_animation_duration_ms" 74 android:propertyName="scaleY" 75 android:valueTo="1.0" 76 android:valueType="floatType" /> 77 </set> 78 </item> 79</selector>