Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 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 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 17 | <item android:state_enabled="true" android:state_pressed="true"> |
| 18 | <set> |
| 19 | <objectAnimator |
| 20 | android:duration="@android:integer/config_shortAnimTime" |
| 21 | android:propertyName="translationZ" |
| 22 | android:valueTo="@dimen/fab_press_translation_z" |
| 23 | android:valueType="floatType" /> |
| 24 | </set> |
| 25 | </item> |
| 26 | <item> |
| 27 | <set> |
| 28 | <objectAnimator |
| 29 | android:duration="@android:integer/config_shortAnimTime" |
| 30 | android:propertyName="translationZ" |
| 31 | android:valueTo="0" |
| 32 | android:valueType="floatType" /> |
| 33 | </set> |
| 34 | </item> |
| 35 | </selector> |