attrs.xml 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <declare-styleable name="PullToRefresh">
  4. <attr name="adapterViewBackground" format="reference|color" />
  5. <attr name="headerBackground" format="reference|color" />
  6. <attr name="headerTextColor" format="color" />
  7. <attr name="mode">
  8. <flag name="pullDownFromTop" value="0x1" />
  9. <flag name="pullUpFromBottom" value="0x2" />
  10. <flag name="both" value="0x3" />
  11. </attr>
  12. <!-- A drawable to use as the background of the Refreshable View -->
  13. <attr name="ptrRefreshableViewBackground" format="reference|color" />
  14. <!-- A drawable to use as the background of the Header and Footer Loading Views -->
  15. <attr name="ptrHeaderBackground" format="reference|color" />
  16. <!-- Text Color of the Header and Footer Loading Views -->
  17. <attr name="ptrHeaderTextColor" format="reference|color" />
  18. <!-- Text Color of the Header and Footer Loading Views Sub Header -->
  19. <attr name="ptrHeaderSubTextColor" format="reference|color" />
  20. <!-- Mode of Pull-to-Refresh that should be used -->
  21. <attr name="ptrMode">
  22. <flag name="disabled" value="0x0" />
  23. <flag name="pullFromStart" value="0x1" />
  24. <flag name="pullFromEnd" value="0x2" />
  25. <flag name="both" value="0x3" />
  26. <flag name="manualOnly" value="0x4" />
  27. <!-- These last two are depreacted -->
  28. <flag name="pullDownFromTop" value="0x1" />
  29. <flag name="pullUpFromBottom" value="0x2" />
  30. </attr>
  31. <!-- Whether the Indicator overlay(s) should be used -->
  32. <attr name="ptrShowIndicator" format="reference|boolean" />
  33. <!-- Drawable to use as Loading Indicator. Changes both Header and Footer. -->
  34. <attr name="ptrDrawable" format="reference" />
  35. <!-- Drawable to use as Loading Indicator in the Header View. Overrides value set in ptrDrawable. -->
  36. <attr name="ptrDrawableStart" format="reference" />
  37. <!-- Drawable to use as Loading Indicator in the Footer View. Overrides value set in ptrDrawable. -->
  38. <attr name="ptrDrawableEnd" format="reference" />
  39. <!-- Whether Android's built-in Over Scroll should be utilised for Pull-to-Refresh. -->
  40. <attr name="ptrOverScroll" format="reference|boolean" />
  41. <!-- Base text color, typeface, size, and style for Header and Footer Loading Views -->
  42. <attr name="ptrHeaderTextAppearance" format="reference" />
  43. <!-- Base text color, typeface, size, and style for Header and Footer Loading Views Sub Header -->
  44. <attr name="ptrSubHeaderTextAppearance" format="reference" />
  45. <!-- Style of Animation should be used displayed when pulling. -->
  46. <attr name="ptrAnimationStyle">
  47. <flag name="rotate" value="0x0" />
  48. <flag name="flip" value="0x1" />
  49. </attr>
  50. <!-- Whether the user can scroll while the View is Refreshing -->
  51. <attr name="ptrScrollingWhileRefreshingEnabled" format="reference|boolean" />
  52. <!--
  53. Whether PullToRefreshListView has it's extras enabled. This allows the user to be
  54. able to scroll while refreshing, and behaves better. It acheives this by adding
  55. Header and/or Footer Views to the ListView.
  56. -->
  57. <attr name="ptrListViewExtrasEnabled" format="reference|boolean" />
  58. <!--
  59. Whether the Drawable should be continually rotated as you pull. This only
  60. takes effect when using the 'Rotate' Animation Style.
  61. -->
  62. <attr name="ptrRotateDrawableWhilePulling" format="reference|boolean" />
  63. <!-- BELOW HERE ARE DEPRECEATED. DO NOT USE. -->
  64. <attr name="ptrAdapterViewBackground" format="reference|color" />
  65. <attr name="ptrDrawableTop" format="reference" />
  66. <attr name="ptrDrawableBottom" format="reference" />
  67. </declare-styleable>
  68. <declare-styleable name="FlowIndicator">
  69. <attr name="count" format="integer" />
  70. <attr name="space" format="dimension" />
  71. <attr name="point_size" format="dimension" />
  72. <attr name="point_seleted_color" format="color|reference" />
  73. <attr name="point_normal_color" format="color|reference" />
  74. <attr name="point_radius" format="dimension" />
  75. </declare-styleable>
  76. <attr name="absListViewStyle" format="reference" />
  77. <attr name="listViewStyle" format="reference" />
  78. <declare-styleable name="MultiColumnListView">
  79. <attr name="plaColumnNumber" format="integer" />
  80. <attr name="plaLandscapeColumnNumber" format="integer" />
  81. <attr name="plaColumnPaddingLeft" format="dimension" />
  82. <attr name="plaColumnPaddingRight" format="dimension" />
  83. </declare-styleable>
  84. <declare-styleable name="PullToRefreshView">
  85. <attr name="ptrHeight" format="dimension" />
  86. <attr name="ptrSpinnerMarginRight" format="dimension" />
  87. <attr name="ptrArrowMarginRight" format="dimension" />
  88. <attr name="ptrTextSize" format="dimension" />
  89. <attr name="ptrLastUpdateTextSize" format="dimension" />
  90. </declare-styleable>
  91. <declare-styleable name="View">
  92. <!--
  93. Supply an identifier name for this view, to later retrieve it
  94. with {@link android.view.View#findViewById View.findViewById()} or
  95. {@link android.app.Activity#findViewById Activity.findViewById()}.
  96. This must be a
  97. resource reference; typically you set this using the
  98. <code>@+</code> syntax to create a new ID resources.
  99. For example: <code>android:id="@+id/my_id"</code> which
  100. allows you to later retrieve the view
  101. with <code>findViewById(R.id.my_id)</code>.
  102. -->
  103. <attr name="id" format="reference" />
  104. <!--
  105. Supply a tag for this view containing a String, to be retrieved
  106. later with {@link android.view.View#getTag View.getTag()} or
  107. searched for with {@link android.view.View#findViewWithTag
  108. View.findViewWithTag()}. It is generally preferable to use
  109. IDs (through the android:id attribute) instead of tags because
  110. they are faster and allow for compile-time type checking.
  111. -->
  112. <attr name="tag" format="string" />
  113. <!-- The initial horizontal scroll offset, in pixels. -->
  114. <attr name="scrollX" format="dimension" />
  115. <!-- The initial vertical scroll offset, in pixels. -->
  116. <attr name="scrollY" format="dimension" />
  117. <!--
  118. A drawable to use as the background. This can be either a reference
  119. to a full drawable resource (such as a PNG image, 9-patch,
  120. XML state list description, etc), or a solid color such as "#ff000000"
  121. (black).
  122. -->
  123. <!-- <attr name="background" format="reference|color" /> -->
  124. <!--
  125. Sets the padding, in pixels, of all four edges. Padding is defined as
  126. space between the edges of the view and the view's content. A views size
  127. will include it's padding. If a {@link android.R.attr#background}
  128. is provided, the padding will initially be set to that (0 if the
  129. drawable does not have padding). Explicitly setting a padding value
  130. will override the corresponding padding found in the background.
  131. -->
  132. <attr name="padding" format="dimension" />
  133. <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. -->
  134. <attr name="paddingLeft" format="dimension" />
  135. <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. -->
  136. <attr name="paddingTop" format="dimension" />
  137. <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. -->
  138. <attr name="paddingRight" format="dimension" />
  139. <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. -->
  140. <attr name="paddingBottom" format="dimension" />
  141. <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
  142. <attr name="paddingStart" format="dimension" />
  143. <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
  144. <attr name="paddingEnd" format="dimension" />
  145. <!--
  146. Boolean that controls whether a view can take focus. By default the user can not
  147. move focus to a view; by setting this attribute to true the view is
  148. allowed to take focus. This value does not impact the behavior of
  149. directly calling {@link android.view.View#requestFocus}, which will
  150. always request focus regardless of this view. It only impacts where
  151. focus navigation will try to move focus.
  152. -->
  153. <attr name="focusable" format="boolean" />
  154. <!--
  155. Boolean that controls whether a view can take focus while in touch mode.
  156. If this is true for a view, that view can gain focus when clicked on, and can keep
  157. focus if another view is clicked on that doesn't have this attribute set to true.
  158. -->
  159. <attr name="focusableInTouchMode" format="boolean" />
  160. <!-- Controls the initial visibility of the view. -->
  161. <attr name="visibility">
  162. <!-- Visible on screen; the default value. -->
  163. <enum name="visible" value="0" />
  164. <!-- Not displayed, but taken into account during layout (space is left for it). -->
  165. <enum name="invisible" value="1" />
  166. <!-- Completely hidden, as if the view had not been added. -->
  167. <enum name="gone" value="2" />
  168. </attr>
  169. <!--
  170. Boolean internal attribute to adjust view layout based on
  171. system windows such as the status bar.
  172. If true, adjusts the padding of this view to leave space for the system windows.
  173. Will only take effect if this view is in a non-embedded activity.
  174. -->
  175. <attr name="fitsSystemWindows" format="boolean" />
  176. <!-- Defines which scrollbars should be displayed on scrolling or not. -->
  177. <attr name="scrollbars">
  178. <!-- No scrollbar is displayed. -->
  179. <flag name="none" value="0x00000000" />
  180. <!-- Displays horizontal scrollbar only. -->
  181. <flag name="horizontal" value="0x00000100" />
  182. <!-- Displays vertical scrollbar only. -->
  183. <flag name="vertical" value="0x00000200" />
  184. </attr>
  185. <!--
  186. Controls the scrollbar style and position. The scrollbars can be overlaid or
  187. inset. When inset, they add to the padding of the view. And the
  188. scrollbars can be drawn inside the padding area or on the edge of
  189. the view. For example, if a view has a background drawable and you
  190. want to draw the scrollbars inside the padding specified by the
  191. drawable, you can use insideOverlay or insideInset. If you want them
  192. to appear at the edge of the view, ignoring the padding, then you can
  193. use outsideOverlay or outsideInset.
  194. -->
  195. <attr name="scrollbarStyle">
  196. <!-- Inside the padding and overlaid -->
  197. <enum name="insideOverlay" value="0x0" />
  198. <!-- Inside the padding and inset -->
  199. <enum name="insideInset" value="0x01000000" />
  200. <!-- Edge of the view and overlaid -->
  201. <enum name="outsideOverlay" value="0x02000000" />
  202. <!-- Edge of the view and inset -->
  203. <enum name="outsideInset" value="0x03000000" />
  204. </attr>
  205. <!--
  206. Set this if the view will serve as a scrolling container, meaing
  207. that it can be resized to shrink its overall window so that there
  208. will be space for an input method. If not set, the default
  209. value will be true if "scrollbars" has the vertical scrollbar
  210. set, else it will be false.
  211. -->
  212. <attr name="isScrollContainer" format="boolean" />
  213. <!-- Defines whether to fade out scrollbars when they are not in use. -->
  214. <attr name="fadeScrollbars" format="boolean" />
  215. <!-- Defines the delay in milliseconds that a scrollbar takes to fade out. -->
  216. <attr name="scrollbarFadeDuration" format="integer" />
  217. <!-- Defines the delay in milliseconds that a scrollbar waits before fade out. -->
  218. <attr name="scrollbarDefaultDelayBeforeFade" format="integer" />
  219. <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. -->
  220. <attr name="scrollbarSize" format="dimension" />
  221. <!-- Defines the horizontal scrollbar thumb drawable. -->
  222. <attr name="scrollbarThumbHorizontal" format="reference" />
  223. <!-- Defines the vertical scrollbar thumb drawable. -->
  224. <attr name="scrollbarThumbVertical" format="reference" />
  225. <!-- Defines the horizontal scrollbar track drawable. -->
  226. <attr name="scrollbarTrackHorizontal" format="reference" />
  227. <!-- Defines the vertical scrollbar track drawable. -->
  228. <attr name="scrollbarTrackVertical" format="reference" />
  229. <!-- Defines whether the horizontal scrollbar track should always be drawn. -->
  230. <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" />
  231. <!-- Defines whether the vertical scrollbar track should always be drawn. -->
  232. <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" />
  233. <!--
  234. This attribute is deprecated and will be ignored as of
  235. API level 14 ({@link android.os.Build.VERSION_CODES#ICE_CREAM_SANDWICH}).
  236. Using fading edges may introduce noticeable performance
  237. degradations and should be used only when required by the application's
  238. visual design. To request fading edges with API level 14 and above,
  239. use the <code>android:requiresFadingEdge</code> attribute instead.
  240. -->
  241. <attr name="fadingEdge">
  242. <!-- No edge is faded. -->
  243. <flag name="none" value="0x00000000" />
  244. <!-- Fades horizontal edges only. -->
  245. <flag name="horizontal" value="0x00001000" />
  246. <!-- Fades vertical edges only. -->
  247. <flag name="vertical" value="0x00002000" />
  248. </attr>
  249. <!-- Defines which edges should be faded on scrolling. -->
  250. <attr name="requiresFadingEdge">
  251. <!-- No edge is faded. -->
  252. <flag name="none" value="0x00000000" />
  253. <!-- Fades horizontal edges only. -->
  254. <flag name="horizontal" value="0x00001000" />
  255. <!-- Fades vertical edges only. -->
  256. <flag name="vertical" value="0x00002000" />
  257. </attr>
  258. <!-- Defines the length of the fading edges. -->
  259. <attr name="fadingEdgeLength" format="dimension" />
  260. <!--
  261. Defines the next view to give focus to when the next focus is
  262. {@link android.view.View#FOCUS_LEFT}.
  263. If the reference refers to a view that does not exist or is part
  264. of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
  265. will result when the reference is accessed.
  266. -->
  267. <attr name="nextFocusLeft" format="reference" />
  268. <!--
  269. Defines the next view to give focus to when the next focus is
  270. {@link android.view.View#FOCUS_RIGHT}
  271. If the reference refers to a view that does not exist or is part
  272. of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
  273. will result when the reference is accessed.
  274. -->
  275. <attr name="nextFocusRight" format="reference" />
  276. <!--
  277. Defines the next view to give focus to when the next focus is
  278. {@link android.view.View#FOCUS_UP}
  279. If the reference refers to a view that does not exist or is part
  280. of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
  281. will result when the reference is accessed.
  282. -->
  283. <attr name="nextFocusUp" format="reference" />
  284. <!--
  285. Defines the next view to give focus to when the next focus is
  286. {@link android.view.View#FOCUS_DOWN}
  287. If the reference refers to a view that does not exist or is part
  288. of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
  289. will result when the reference is accessed.
  290. -->
  291. <attr name="nextFocusDown" format="reference" />
  292. <!--
  293. Defines the next view to give focus to when the next focus is
  294. {@link android.view.View#FOCUS_FORWARD}
  295. If the reference refers to a view that does not exist or is part
  296. of a hierarchy that is invisible, a {@link java.lang.RuntimeException}
  297. will result when the reference is accessed.
  298. -->
  299. <attr name="nextFocusForward" format="reference" />
  300. <!-- Defines whether this view reacts to click events. -->
  301. <attr name="clickable" format="boolean" />
  302. <!-- Defines whether this view reacts to long click events. -->
  303. <attr name="longClickable" format="boolean" />
  304. <!--
  305. If unset, no state will be saved for this view when it is being
  306. frozen. The default is true, allowing the view to be saved
  307. (however it also must have an ID assigned to it for its
  308. state to be saved). Setting this to false only disables the
  309. state for this view, not for its children which may still
  310. be saved.
  311. -->
  312. <attr name="saveEnabled" format="boolean" />
  313. <!--
  314. Specifies whether to filter touches when the view's window is obscured by
  315. another visible window. When set to true, the view will not receive touches
  316. whenever a toast, dialog or other window appears above the view's window.
  317. Refer to the {@link android.view.View} security documentation for more details.
  318. -->
  319. <attr name="filterTouchesWhenObscured" format="boolean" />
  320. <!--
  321. Defines the quality of translucent drawing caches. This property is used
  322. only when the drawing cache is enabled and translucent. The default value is auto.
  323. -->
  324. <attr name="drawingCacheQuality">
  325. <!--
  326. Lets the framework decide what quality level should be used
  327. for the drawing cache.
  328. -->
  329. <enum name="auto" value="0" />
  330. <!--
  331. Low quality. When set to low quality, the drawing cache uses a lower color
  332. depth, thus losing precision in rendering gradients, but uses less memory.
  333. -->
  334. <enum name="low" value="1" />
  335. <!--
  336. High quality. When set to high quality, the drawing cache uses a higher
  337. color depth but uses more memory.
  338. -->
  339. <enum name="high" value="2" />
  340. </attr>
  341. <!--
  342. Controls whether the view's window should keep the screen on
  343. while visible.
  344. -->
  345. <attr name="keepScreenOn" format="boolean" />
  346. <!--
  347. When this attribute is set to true, the view gets its drawable state
  348. (focused, pressed, etc.) from its direct parent rather than from itself.
  349. -->
  350. <attr name="duplicateParentState" format="boolean" />
  351. <!--
  352. Defines the minimum height of the view. It is not guaranteed
  353. the view will be able to achieve this minimum height (for example,
  354. if its parent layout constrains it with less available height).
  355. -->
  356. <attr name="minHeight" format="dimension" />
  357. <!--
  358. Defines the minimum width of the view. It is not guaranteed
  359. the view will be able to achieve this minimum width (for example,
  360. if its parent layout constrains it with less available width).
  361. -->
  362. <attr name="minWidth" format="dimension" />
  363. <!--
  364. Boolean that controls whether a view should have sound effects
  365. enabled for events such as clicking and touching.
  366. -->
  367. <attr name="soundEffectsEnabled" format="boolean" />
  368. <!--
  369. Boolean that controls whether a view should have haptic feedback
  370. enabled for events such as long presses.
  371. -->
  372. <attr name="hapticFeedbackEnabled" format="boolean" />
  373. <!--
  374. Defines text that briefly describes content of the view. This property is used
  375. primarily for accessibility. Since some views do not have textual
  376. representation this attribute can be used for providing such.
  377. -->
  378. <attr name="contentDescription" format="string" localization="suggested" />
  379. <!--
  380. Name of the method in this View's context to invoke when the view is
  381. clicked. This name must correspond to a public method that takes
  382. exactly one parameter of type View. For instance, if you specify
  383. <code>android:onClick="sayHello"</code>, you must declare a
  384. <code>public void sayHello(View v)</code> method of your context
  385. (typically, your Activity).
  386. -->
  387. <attr name="onClick" format="string" />
  388. <!--
  389. Defines over-scrolling behavior. This property is used only if the
  390. View is scrollable. Over-scrolling is the ability for the user to
  391. receive feedback when attempting to scroll beyond meaningful content.
  392. -->
  393. <attr name="overScrollMode">
  394. <!--
  395. Always show over-scroll effects, even if the content fits entirely
  396. within the available space.
  397. -->
  398. <enum name="always" value="0" />
  399. <!--
  400. Only show over-scroll effects if the content is large
  401. enough to meaningfully scroll.
  402. -->
  403. <enum name="ifContentScrolls" value="1" />
  404. <!-- Never show over-scroll effects. -->
  405. <enum name="never" value="2" />
  406. </attr>
  407. <!--
  408. alpha property of the view, as a value between 0 (completely transparent) and 1
  409. (completely opaque).
  410. -->
  411. <attr name="alpha" format="float" />
  412. <!--
  413. translation in x of the view. This value is added post-layout to the left
  414. property of the view, which is set by its layout.
  415. -->
  416. <attr name="translationX" format="dimension" />
  417. <!--
  418. translation in y of the view. This value is added post-layout to the left
  419. property of the view, which is set by its layout.
  420. -->
  421. <attr name="translationY" format="dimension" />
  422. <!--
  423. x location of the pivot point around which the view will rotate and scale.
  424. This xml attribute sets the pivotX property of the View.
  425. -->
  426. <attr name="transformPivotX" format="dimension" />
  427. <!--
  428. y location of the pivot point around which the view will rotate and scale.
  429. This xml attribute sets the pivotY property of the View.
  430. -->
  431. <attr name="transformPivotY" format="dimension" />
  432. <!-- rotation of the view, in degrees. -->
  433. <attr name="rotation" format="float" />
  434. <!-- rotation of the view around the x axis, in degrees. -->
  435. <attr name="rotationX" format="float" />
  436. <!-- rotation of the view around the y axis, in degrees. -->
  437. <attr name="rotationY" format="float" />
  438. <!-- scale of the view in the x direction. -->
  439. <attr name="scaleX" format="float" />
  440. <!-- scale of the view in the y direction. -->
  441. <attr name="scaleY" format="float" />
  442. <!-- Determines which side the vertical scroll bar should be placed on. -->
  443. <attr name="verticalScrollbarPosition">
  444. <!-- Place the scroll bar wherever the system default determines. -->
  445. <enum name="defaultPosition" value="0" />
  446. <!-- Place the scroll bar on the left. -->
  447. <enum name="left" value="1" />
  448. <!-- Place the scroll bar on the right. -->
  449. <enum name="right" value="2" />
  450. </attr>
  451. <!--
  452. Specifies the type of layer backing this view. The default value is none.
  453. Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint)}
  454. for more information.
  455. -->
  456. <attr name="layerType">
  457. <!-- Don't use a layer. -->
  458. <enum name="none" value="0" />
  459. <!--
  460. Use a software layer. Refer to
  461. {@link android.view.View#setLayerType(int, android.graphics.Paint) for
  462. more information.
  463. -->
  464. <enum name="software" value="1" />
  465. <!--
  466. Use a hardware layer. Refer to
  467. {@link android.view.View#setLayerType(int, android.graphics.Paint) for
  468. more information.
  469. -->
  470. <enum name="hardware" value="2" />
  471. </attr>
  472. <!--
  473. Defines the direction of layout drawing. This typically is associated with writing
  474. direction of the language script used. The possible values are "ltr" for Left-to-Right,
  475. "rtl" for Right-to-Left, "locale" and "inherit" from parent view. If there is nothing
  476. to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction
  477. used in "en-US". The default for this attribute is "inherit".
  478. -->
  479. <attr name="layoutDirection">
  480. <!-- Left-to-Right -->
  481. <enum name="ltr" value="0" />
  482. <!-- Right-to-Left -->
  483. <enum name="rtl" value="1" />
  484. <!-- Inherit from parent -->
  485. <enum name="inherit" value="2" />
  486. <!-- Locale -->
  487. <enum name="locale" value="3" />
  488. </attr>
  489. <!--
  490. Direction of the text. A heuristic is used to determine the resolved text direction
  491. of paragraphs.
  492. -->
  493. <attr name="textDirection" format="integer">
  494. <!-- Default -->
  495. <enum name="inherit" value="0" />
  496. <!--
  497. Default for the root view. The first strong directional character determines the
  498. paragraph direction. If there is no strong directional character, the paragraph
  499. direction is the view’s resolved layout direction.
  500. -->
  501. <enum name="firstStrong" value="1" />
  502. <!--
  503. The paragraph direction is RTL if it contains any strong RTL character, otherwise
  504. it is LTR if it contains any strong LTR characters. If there are neither, the
  505. paragraph direction is the view’s resolved layout direction.
  506. -->
  507. <enum name="anyRtl" value="2" />
  508. <!-- The paragraph direction is left to right. -->
  509. <enum name="ltr" value="3" />
  510. <!-- The paragraph direction is right to left. -->
  511. <enum name="rtl" value="4" />
  512. <!-- The paragraph direction is coming from the system Locale. -->
  513. <enum name="locale" value="5" />
  514. </attr>
  515. <!--
  516. Alignment of the text. A heuristic is used to determine the resolved
  517. text alignment.
  518. -->
  519. <attr name="textAlignment" format="integer">
  520. <!-- Default -->
  521. <enum name="inherit" value="0" />
  522. <!--
  523. Default for the root view. The gravity determines the alignment, ALIGN_NORMAL,
  524. ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s
  525. text direction
  526. -->
  527. <enum name="gravity" value="1" />
  528. <!-- Align to the start of the paragraph, e.g. ALIGN_NORMAL. -->
  529. <enum name="textStart" value="2" />
  530. <!-- Align to the end of the paragraph, e.g. ALIGN_OPPOSITE. -->
  531. <enum name="textEnd" value="3" />
  532. <!-- Center the paragraph, e.g. ALIGN_CENTER. -->
  533. <enum name="center" value="4" />
  534. <!--
  535. Align to the start of the view, which is ALIGN_LEFT if the view’s resolved
  536. layoutDirection is LTR, and ALIGN_RIGHT otherwise.
  537. -->
  538. <enum name="viewStart" value="5" />
  539. <!--
  540. Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved
  541. layoutDirection is LTR, and ALIGN_LEFT otherwise
  542. -->
  543. <enum name="viewEnd" value="6" />
  544. </attr>
  545. <!--
  546. Controls how this View is important for accessibility which is if it fires
  547. accessibility events and if it is reported to accessibility services that
  548. query the screen. Note: While not recommended, an accessibility service may
  549. decide to ignore this attribute and operate on all views in the view tree.
  550. -->
  551. <attr name="importantForAccessibility" format="integer">
  552. <!--
  553. The system determines whether the view is important for accessibility - default
  554. (recommended).
  555. -->
  556. <enum name="auto" value="0" />
  557. <!-- The view is important for accessibility. -->
  558. <enum name="yes" value="1" />
  559. <!-- The view is not important for accessibility. -->
  560. <enum name="no" value="2" />
  561. </attr>
  562. <!-- @hide Controls whether this view can take accessibility focus. -->
  563. <attr name="accessibilityFocusable" format="integer">
  564. <!--
  565. The system determines whether the view can take accessibility focus - default
  566. (recommended).
  567. <p>
  568. Such a view is consideted by the focus search if it is:
  569. <ul>
  570. <li>
  571. Important for accessibility and actionable (clickable, long clickable, focusable)
  572. </li>
  573. <li>
  574. Important for accessibility, not actionable (clickable, long clickable, focusable),
  575. and does not have an actionable predecessor.
  576. </li>
  577. </ul>
  578. An accessibility srvice can request putting accessibility focus on such a view.
  579. </p>
  580. -->
  581. <enum name="auto" value="0" />
  582. <!--
  583. The view can take accessibility focus.
  584. <p>
  585. A view that can take accessibility focus is always considered during focus
  586. search and an accessibility service can request putting accessibility focus
  587. on it.
  588. </p>
  589. -->
  590. <enum name="yes" value="1" />
  591. <!--
  592. The view can not take accessibility focus.
  593. <p>
  594. A view that can not take accessibility focus is never considered during focus
  595. search and an accessibility service can not request putting accessibility focus
  596. on it.
  597. </p>
  598. -->
  599. <enum name="no" value="2" />
  600. </attr>
  601. </declare-styleable>
  602. <!--
  603. Attributes that can be used with a {@link android.view.ViewGroup} or any
  604. of its subclasses. Also see {@link #ViewGroup_Layout} for
  605. attributes that this class processes in its children.
  606. -->
  607. <declare-styleable name="ViewGroup">
  608. <!--
  609. Defines whether changes in layout (caused by adding and removing items) should
  610. cause a LayoutTransition to run. When this flag is set to true, a default
  611. LayoutTransition object will be set on the ViewGroup container and default
  612. animations will run when these layout changes occur.
  613. -->
  614. <attr name="animateLayoutChanges" format="boolean" />
  615. <!--
  616. Defines whether a child is limited to draw inside of its bounds or not.
  617. This is useful with animations that scale the size of the children to more
  618. than 100% for instance. In such a case, this property should be set to false
  619. to allow the children to draw outside of their bounds. The default value of
  620. this property is true.
  621. -->
  622. <attr name="clipChildren" format="boolean" />
  623. <!--
  624. Defines whether the ViewGroup will clip its drawing surface so as to exclude
  625. the padding area. This property is set to true by default.
  626. -->
  627. <attr name="clipToPadding" format="boolean" />
  628. <!--
  629. Defines the layout animation to use the first time the ViewGroup is laid out.
  630. Layout animations can also be started manually after the first layout.
  631. -->
  632. <attr name="layoutAnimation" format="reference" />
  633. <!--
  634. Defines whether layout animations should create a drawing cache for their
  635. children. Enabling the animation cache consumes more memory and requires
  636. a longer initialization but provides better performance. The animation
  637. cache is enabled by default.
  638. -->
  639. <attr name="animationCache" format="boolean" />
  640. <!--
  641. Defines the persistence of the drawing cache. The drawing cache might be
  642. enabled by a ViewGroup for all its children in specific situations (for
  643. instance during a scrolling.) This property lets you persist the cache
  644. in memory after its initial usage. Persisting the cache consumes more
  645. memory but may prevent frequent garbage collection is the cache is created
  646. over and over again. By default the persistence is set to scrolling.
  647. -->
  648. <attr name="persistentDrawingCache">
  649. <!-- The drawing cache is not persisted after use. -->
  650. <flag name="none" value="0x0" />
  651. <!-- The drawing cache is persisted after a layout animation. -->
  652. <flag name="animation" value="0x1" />
  653. <!-- The drawing cache is persisted after a scroll. -->
  654. <flag name="scrolling" value="0x2" />
  655. <!-- The drawing cache is always persisted. -->
  656. <flag name="all" value="0x3" />
  657. </attr>
  658. <!--
  659. Defines whether the ViewGroup should always draw its children using their
  660. drawing cache or not. The default value is true.
  661. -->
  662. <attr name="alwaysDrawnWithCache" format="boolean" />
  663. <!--
  664. Sets whether this ViewGroup's drawable states also include
  665. its children's drawable states. This is used, for example, to
  666. make a group appear to be focused when its child EditText or button
  667. is focused.
  668. -->
  669. <attr name="addStatesFromChildren" format="boolean" />
  670. <!--
  671. Defines the relationship between the ViewGroup and its descendants
  672. when looking for a View to take focus.
  673. -->
  674. <attr name="descendantFocusability">
  675. <!-- The ViewGroup will get focus before any of its descendants. -->
  676. <enum name="beforeDescendants" value="0" />
  677. <!-- The ViewGroup will get focus only if none of its descendants want it. -->
  678. <enum name="afterDescendants" value="1" />
  679. <!-- The ViewGroup will block its descendants from receiving focus. -->
  680. <enum name="blocksDescendants" value="2" />
  681. </attr>
  682. <!--
  683. Sets whether this ViewGroup should split MotionEvents
  684. to separate child views during touch event dispatch.
  685. If false (default), touch events will be dispatched to
  686. the child view where the first pointer went down until
  687. the last pointer goes up.
  688. If true, touch events may be dispatched to multiple children.
  689. MotionEvents for each pointer will be dispatched to the child
  690. view where the initial ACTION_DOWN event happened.
  691. See {@link android.view.ViewGroup#setMotionEventSplittingEnabled(boolean)}
  692. for more information.
  693. -->
  694. <attr name="splitMotionEvents" format="boolean" />
  695. </declare-styleable>
  696. <declare-styleable name="AbsListView">
  697. <!-- Drawable used to indicate the currently selected item in the list. -->
  698. <attr name="listSelector" format="color|reference" />
  699. <!--
  700. When set to true, the selector will be drawn over the selected item.
  701. Otherwise the selector is drawn behind the selected item. The default
  702. value is false.
  703. -->
  704. <attr name="drawSelectorOnTop" format="boolean" />
  705. <!-- Used by ListView and GridView to stack their content from the bottom. -->
  706. <attr name="stackFromBottom" format="boolean" />
  707. <!--
  708. When set to true, the list uses a drawing cache during scrolling.
  709. This makes the rendering faster but uses more memory. The default
  710. value is true.
  711. -->
  712. <attr name="scrollingCache" format="boolean" />
  713. <!--
  714. When set to true, the list will filter results as the user types. The
  715. List's adapter must support the Filterable interface for this to work.
  716. -->
  717. <attr name="textFilterEnabled" format="boolean" />
  718. <!--
  719. Sets the transcript mode for the list. In transcript mode, the list
  720. scrolls to the bottom to make new items visible when they are added.
  721. -->
  722. <attr name="transcriptMode">
  723. <!-- Disables transcript mode. This is the default value. -->
  724. <enum name="disabled" value="0" />
  725. <!--
  726. The list will automatically scroll to the bottom when
  727. a data set change notification is received and only if the last item is
  728. already visible on screen.
  729. -->
  730. <enum name="normal" value="1" />
  731. <!--
  732. The list will automatically scroll to the bottom, no matter what items
  733. are currently visible.
  734. -->
  735. <enum name="alwaysScroll" value="2" />
  736. </attr>
  737. <!--
  738. Indicates that this list will always be drawn on top of solid, single-color
  739. opaque background. This allows the list to optimize drawing.
  740. -->
  741. <attr name="cacheColorHint" format="color" />
  742. <!--
  743. Enables the fast scroll thumb that can be dragged to quickly scroll through
  744. the list.
  745. -->
  746. <attr name="fastScrollEnabled" format="boolean" />
  747. <!--
  748. When set to true, the list will use a more refined calculation
  749. method based on the pixels height of the items visible on screen. This
  750. property is set to true by default but should be set to false if your adapter
  751. will display items of varying heights. When this property is set to true and
  752. your adapter displays items of varying heights, the scrollbar thumb will
  753. change size as the user scrolls through the list. When set to fale, the list
  754. will use only the number of items in the adapter and the number of items visible
  755. on screen to determine the scrollbar's properties.
  756. -->
  757. <attr name="smoothScrollbar" format="boolean" />
  758. <!--
  759. Defines the choice behavior for the view. By default, lists do not have
  760. any choice behavior. By setting the choiceMode to singleChoice, the list
  761. allows up to one item to be in a chosen state. By setting the choiceMode to
  762. multipleChoice, the list allows any number of items to be chosen.
  763. Finally, by setting the choiceMode to multipleChoiceModal the list allows
  764. any number of items to be chosen in a special selection mode.
  765. The application will supply a
  766. {@link android.widget.AbsListView.MultiChoiceModeListener} using
  767. {@link android.widget.AbsListView#setMultiChoiceModeListener} to control the
  768. selection mode. This uses the {@link android.view.ActionMode} API.
  769. -->
  770. <attr name="choiceMode">
  771. <!-- Normal list that does not indicate choices. -->
  772. <enum name="none" value="0" />
  773. <!-- The list allows up to one choice. -->
  774. <enum name="singleChoice" value="1" />
  775. <!-- The list allows multiple choices. -->
  776. <enum name="multipleChoice" value="2" />
  777. <!-- The list allows multiple choices in a custom selection mode. -->
  778. <enum name="multipleChoiceModal" value="3" />
  779. </attr>
  780. <!--
  781. When set to true, the list will always show the fast scroll interface.
  782. This setting implies fastScrollEnabled.
  783. -->
  784. <attr name="fastScrollAlwaysVisible" format="boolean" />
  785. </declare-styleable>
  786. <declare-styleable name="ListView">
  787. <!-- Drawable or color to draw between list items. -->
  788. <!-- <attr name="divider" format="reference|color" /> -->
  789. <!--
  790. Height of the divider. Will use the intrinsic height of the divider if this
  791. is not specified.
  792. -->
  793. <attr name="dividerHeight" format="dimension" />
  794. <!--
  795. When set to false, the ListView will not draw the divider after each header view.
  796. The default value is true.
  797. -->
  798. <attr name="headerDividersEnabled" format="boolean" />
  799. <!--
  800. When set to false, the ListView will not draw the divider before each footer view.
  801. The default value is true.
  802. -->
  803. <attr name="footerDividersEnabled" format="boolean" />
  804. <!-- Drawable to draw above list content. -->
  805. <attr name="overScrollHeader" format="reference|color" />
  806. <!-- Drawable to draw below list content. -->
  807. <attr name="overScrollFooter" format="reference|color" />
  808. </declare-styleable>
  809. <!-- name:付强 审批页属性 -->
  810. <attr name="item_count" format="integer"></attr>
  811. <declare-styleable name="ViewPagerIndicator">
  812. <attr name="item_count" />
  813. </declare-styleable>
  814. <declare-styleable name="TwoWayView">
  815. <!-- Imported from View -->
  816. <attr name="android:id" />
  817. <attr name="android:tag" />
  818. <attr name="android:scrollX" />
  819. <attr name="android:scrollY" />
  820. <attr name="android:background" />
  821. <attr name="android:padding" />
  822. <attr name="android:paddingLeft" />
  823. <attr name="android:paddingTop" />
  824. <attr name="android:paddingRight" />
  825. <attr name="android:paddingBottom" />
  826. <attr name="android:paddingStart" />
  827. <attr name="android:paddingEnd" />
  828. <attr name="android:focusable" />
  829. <attr name="android:focusableInTouchMode" />
  830. <attr name="android:visibility" />
  831. <attr name="android:fitsSystemWindows" />
  832. <attr name="android:scrollbars" />
  833. <attr name="android:scrollbarStyle" />
  834. <attr name="android:isScrollContainer" />
  835. <attr name="android:fadeScrollbars" />
  836. <attr name="android:scrollbarFadeDuration" />
  837. <attr name="android:scrollbarDefaultDelayBeforeFade" />
  838. <attr name="android:scrollbarSize" />
  839. <attr name="android:scrollbarThumbHorizontal" />
  840. <attr name="android:scrollbarThumbVertical" />
  841. <attr name="android:scrollbarTrackHorizontal" />
  842. <attr name="android:scrollbarTrackVertical" />
  843. <attr name="android:scrollbarAlwaysDrawHorizontalTrack" />
  844. <attr name="android:scrollbarAlwaysDrawVerticalTrack" />
  845. <attr name="android:fadingEdge" />
  846. <attr name="android:requiresFadingEdge" />
  847. <attr name="android:fadingEdgeLength" />
  848. <attr name="android:nextFocusLeft" />
  849. <attr name="android:nextFocusRight" />
  850. <attr name="android:nextFocusUp" />
  851. <attr name="android:nextFocusDown" />
  852. <attr name="android:nextFocusForward" />
  853. <attr name="android:clickable" />
  854. <attr name="android:longClickable" />
  855. <attr name="android:saveEnabled" />
  856. <attr name="android:filterTouchesWhenObscured" />
  857. <attr name="android:drawingCacheQuality" />
  858. <attr name="android:keepScreenOn" />
  859. <attr name="android:duplicateParentState" />
  860. <attr name="android:minHeight" />
  861. <attr name="android:minWidth" />
  862. <attr name="android:soundEffectsEnabled" />
  863. <attr name="android:hapticFeedbackEnabled" />
  864. <attr name="android:contentDescription" />
  865. <attr name="android:onClick" />
  866. <attr name="android:overScrollMode" />
  867. <attr name="android:alpha" />
  868. <attr name="android:translationX" />
  869. <attr name="android:translationY" />
  870. <attr name="android:transformPivotX" />
  871. <attr name="android:transformPivotY" />
  872. <attr name="android:rotation" />
  873. <attr name="android:rotationX" />
  874. <attr name="android:rotationY" />
  875. <attr name="android:scaleX" />
  876. <attr name="android:scaleY" />
  877. <attr name="android:verticalScrollbarPosition" />
  878. <attr name="android:layerType" />
  879. <attr name="android:layoutDirection" />
  880. <attr name="android:textDirection" />
  881. <attr name="android:textAlignment" />
  882. <!-- Imported from Android -->
  883. <attr name="android:orientation" />
  884. <!-- Imported from AbsListView -->
  885. <attr name="android:choiceMode" />
  886. <attr name="android:drawSelectorOnTop" />
  887. <attr name="android:listSelector" />
  888. </declare-styleable>
  889. <declare-styleable name="wheelview">
  890. <attr name="gravity">
  891. <enum name="center" value="17" />
  892. <enum name="left" value="3" />
  893. <enum name="right" value="5" />
  894. </attr>
  895. <attr name="textColorOut" format="color" />
  896. <attr name="textColorCenter" format="color" />
  897. <attr name="dividerColor" format="color" />
  898. </declare-styleable>
  899. <declare-styleable name="NineGridView">
  900. <attr name="ngv_singleImageSize" format="dimension" />
  901. <attr name="ngv_singleImageRatio" format="float" />
  902. <attr name="ngv_gridSpacing" format="dimension" />
  903. <attr name="ngv_maxSize" format="integer" />
  904. <attr name="ngv_mode" format="enum">
  905. <enum name="fill" value="0" />
  906. <enum name="grid" value="1" />
  907. </attr>
  908. </declare-styleable>
  909. </resources>