1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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<resources> 18 <eat-comment/> 19 20 <!-- Drawable used to render several states. Each state is represented by 21 a child drawable. --> 22 <declare-styleable name="StateListDrawable"> 23 <!-- Indicates whether the drawable should be initially visible. --> 24 <attr name="android:visible" /> 25 <!-- If true, allows the drawable's padding to change based on the 26 current state that is selected. If false, the padding will 27 stay the same (based on the maximum padding of all the states). 28 Enabling this feature requires that the owner of the drawable 29 deal with performing layout when the state changes, which is 30 often not supported. --> 31 <attr name="android:variablePadding" /> 32 <!-- If true, the drawable's reported internal size will remain 33 constant as the state changes; the size is the maximum of all 34 of the states. If false, the size will vary based on the 35 current state. --> 36 <attr name="android:constantSize" /> 37 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 38 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 39 an RGB 565 screen). --> 40 <attr name="android:dither" /> 41 <!-- Amount of time (in milliseconds) to fade in a new state drawable. --> 42 <attr name="android:enterFadeDuration" /> 43 <!-- Amount of time (in milliseconds) to fade out an old state drawable. --> 44 <attr name="android:exitFadeDuration" /> 45 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 46 RTL (right-to-left). --> 47 <!--<attr name="autoMirrored"/>--> 48 </declare-styleable> 49 50 <!-- Represents a single state inside a StateListDrawable. --> 51 <declare-styleable name="StateListDrawableItem"> 52 <!-- Reference to a drawable resource to use for the state. If not 53 given, the drawable must be defined by the first child tag. --> 54 <attr name="android:drawable" /> 55 </declare-styleable> 56 57 <!-- Drawable used to render several states with animated transitions. Each state 58 is represented by a child drawable with an optional keyframe ID. --> 59 <declare-styleable name="AnimatedStateListDrawableCompat"> 60 <!-- Indicates whether the drawable should be initially visible. --> 61 <attr name="android:visible" /> 62 <!-- If true, allows the drawable's padding to change based on the 63 current state that is selected. If false, the padding will 64 stay the same (based on the maximum padding of all the states). 65 Enabling this feature requires that the owner of the drawable 66 deal with performing layout when the state changes, which is 67 often not supported. --> 68 <attr name="android:variablePadding" /> 69 <!-- If true, the drawable's reported internal size will remain 70 constant as the state changes; the size is the maximum of all 71 of the states. If false, the size will vary based on the 72 current state. --> 73 <attr name="android:constantSize" /> 74 <!-- Enables or disables dithering of the bitmap if the bitmap does not have the 75 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with 76 an RGB 565 screen). --> 77 <attr name="android:dither" /> 78 <!-- Amount of time (in milliseconds) to fade in a new state drawable. --> 79 <attr name="android:enterFadeDuration" /> 80 <!-- Amount of time (in milliseconds) to fade out an old state drawable. --> 81 <attr name="android:exitFadeDuration" /> 82 <!-- Indicates if the drawable needs to be mirrored when its layout direction is 83 RTL (right-to-left). --> 84 <!--<attr name="autoMirrored"/>--> 85 </declare-styleable> 86 87 <!-- Transition used to animate between states with keyframe IDs. --> 88 <declare-styleable name="AnimatedStateListDrawableItem"> 89 <!-- Reference to a drawable resource to use for the frame. If not 90 given, the drawable must be defined by the first child tag. --> 91 <attr name="android:drawable" /> 92 <!-- Keyframe identifier for use in specifying transitions. --> 93 <attr name="android:id" /> 94 </declare-styleable> 95 96 <!-- Transition used to animate between states with keyframe IDs. --> 97 <declare-styleable name="AnimatedStateListDrawableTransition"> 98 <!-- Keyframe identifier for the starting state. --> 99 <attr name="android:fromId" /> 100 <!-- Keyframe identifier for the ending state. --> 101 <attr name="android:toId" /> 102 <!-- Reference to a animation drawable resource to use for the frame. If not 103 given, the animation drawable must be defined by the first child tag. --> 104 <attr name="android:drawable" /> 105 <!-- Whether this transition is reversible. --> 106 <attr name="android:reversible" /> 107 </declare-styleable> 108 109</resources> 110