1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 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 <resources> 17 18 <declare-styleable name="CanvasSettings"> 19 <attr name="preference" format="reference" /> 20 </declare-styleable> 21 <declare-styleable name="WifiEncryptionState"> 22 <attr name="state_encrypted" format="boolean" /> 23 </declare-styleable> 24 <declare-styleable name="PercentageBarChart"> 25 26 <!-- Background color --> 27 <attr name="emptyColor" format="color" /> 28 <!-- Minimum tick width for each slice in the bar chart. --> 29 <attr name="minTickWidth" format="dimension" /> 30 </declare-styleable> 31 32 <declare-styleable name="FrameLayoutWithShadows"> 33 <!-- default shadow drawable --> 34 <attr name="defaultShadow" format="reference"/> 35 <!-- drawable on bottom of content, note: it requires intrinsic height, 36 so ColorDrawable does not work, use ShapeDrawable with solid color 37 instead --> 38 <attr name="drawableBottom" format="reference"/> 39 </declare-styleable> 40 41 <declare-styleable name="ScrollAdapterView"> 42 43 <attr name="orientation"> 44 <enum name="horizontal" value="0" /> 45 <enum name="vertical" value="1" /> 46 </attr> 47 48 <!-- indicate whether the ScrollAdapterView's child can have focus, 49 default is true --> 50 <attr name="itemFocusable" format="boolean" /> 51 52 <!-- 53 set to 1 (default value) for single row/column, set to > 1 for grid view, 54 set to 0 for auto adjust rows/columns by widget size. 55 --> 56 <attr name="gridSetting" format="integer" /> 57 58 <!-- space between two items --> 59 <attr name="space" format="dimension" /> 60 61 <!-- alternative space size of a selected item, ScrollAdapterView may assign 62 more (or less) space to the selected item and animate the transition between 63 multiple items. In a more complicated case: if each item has a different 64 selectedSize, use ScrollAdapterCustomSize. <p> 65 The value can be used in two cases: <p> 66 - when selectedTakesMoreSpace is true: ScrollAdapterView will allocate more 67 spaces surrounding the focused item. The extra spaces is added to left/right 68 depending on "scrollItemAlign". <p> 69 - when selectedTakesMoreSpace is false: ScrollAdapterView will not allocate 70 more spaces for focused item, but will align the focused item using the value. <p> 71 In any case, ScrollAdapterView never scale the View or change its width or height, 72 the view itself is responsible doing the scale in ScrollAdapterTransform or 73 ScrollAdapterView.OnScrollListener 74 --> 75 <attr name="selectedSize" format="dimension" /> 76 77 <!-- if ScrollAdapterView will use "selectedSize" or ScrollAdapterCustomSize 78 to add more spaces for selected item--> 79 <attr name="selectedTakesMoreSpace" format="boolean" /> 80 81 <!-- describe how to put scroll center in the viewport --> 82 <attr name="scrollCenterStrategy"> 83 84 <!-- keep scroll center in center of viewport, the middle point is 1/2 inside 85 client area (size - padding) by default. But you can also use scrollCenterOffset 86 or scrollCenterOffsetPercent to customize it--> 87 <enum name="keepCenter" value="0" /> 88 <!-- keep scroll center as a fixed distance from left/top --> 89 <enum name="fixed" value="1" /> 90 <!-- keep scroll center offset from the center of the view --> 91 <enum name="fixedPercent" value="2"/> 92 <!-- keep scroll center as a fixed distance from right/bottom --> 93 <enum name="fixedToEnd" value="3" /> 94 </attr> 95 96 <!-- only used when scrollCenterStrategy is fixed or fixedPercent --> 97 <attr name="scrollCenterOffset" format="dimension" /> 98 99 <!-- only used when scrollCenterStrategy is fixedPercent --> 100 <attr name="scrollCenterOffsetPercent" format="integer" /> 101 102 <!-- how to align the selected item --> 103 <attr name="scrollItemAlign"> 104 <!-- align the center of selected item --> 105 <enum name="center" value="0" /> 106 <!-- align the left/up edge of selected item --> 107 <enum name="low" value="1" /> 108 <!-- align the right/down edge of selected item --> 109 <enum name="high" value="2" /> 110 </attr> 111 112 <!-- divisor (>=1) for view to chasing the scrolling target pos, set to 1.0 for 113 immediately fill the gap of current pos and target, default value 2.0 fills half 114 of the gap every time. The reason that we use Lerper model is for smoothing out 115 transitions between two different animations. --> 116 <attr name="lerperDivisor" format="float" /> 117 118 <!-- 119 distance based transform for the views on the left/top of center position, 120 the duration is interpreted as "dip" instead of milliseconds 121 --> 122 <attr name="lowItemTransform" format="reference" /> 123 124 <!-- 125 distance based transform for the views on the right/down of center position, 126 the duration is interpreted as "dip" instead of milliseconds 127 --> 128 <attr name="highItemTransform" format="reference" /> 129 130 <!-- animation for showing expanded item --> 131 <attr name="expandedItemInAnim" format="reference" /> 132 133 <!-- animation for hiding expanded item --> 134 <attr name="expandedItemOutAnim" format="reference" /> 135 136 <!-- allow DPAD key to navigate out of scrollAdapterView, default is true --> 137 <attr name="navigateOutAllowed" format="boolean" /> 138 139 <!-- allow DPAD key to navigate out of off axis of scrollAdapterView, default is true --> 140 <attr name="navigateOutOfOffAxisAllowed" format="boolean" /> 141 142 <!-- allow DPAD key during animation, default is true --> 143 <attr name="navigateInAnimationAllowed" format="boolean" /> 144 145 </declare-styleable> 146 147 <declare-styleable name="RefcountImageView"> 148 <attr name="autoUnrefOnDetach" format="boolean" /> 149 </declare-styleable> 150 </resources> 151