attrs.xml 46 KB

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