attrs.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /* Copyright 2008, The Android Open Source Project
  4. **
  5. ** Licensed under the Apache License, Version 2.0 (the "License");
  6. ** you may not use this file except in compliance with the License.
  7. ** You may obtain a copy of the License at
  8. **
  9. ** http://www.apache.org/licenses/LICENSE-2.0
  10. **
  11. ** Unless required by applicable law or agreed to in writing, software
  12. ** distributed under the License is distributed on an "AS IS" BASIS,
  13. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ** See the License for the specific language governing permissions and
  15. ** limitations under the License.
  16. */
  17. -->
  18. <resources>
  19. <!-- DrawableStateProxyView specific attributes. These attributes are used to customize
  20. a DrawableStateProxyView view in XML files. -->
  21. <declare-styleable name="DrawableStateProxyView">
  22. <!-- The source view to delegate touch presses events to. -->
  23. <attr name="sourceViewId" format="integer" />
  24. </declare-styleable>
  25. <!-- Page Indicator specific attributes. -->
  26. <declare-styleable name="PageIndicator">
  27. <attr name="windowSize" format="integer" />
  28. </declare-styleable>
  29. <!-- Workspace specific attributes. These attributes are used to customize
  30. the workspace in XML files. -->
  31. <declare-styleable name="Workspace">
  32. <!-- The first screen the workspace should display. -->
  33. <attr name="defaultScreen" format="integer" />
  34. <!-- The number of horizontal cells in the CellLayout -->
  35. <attr name="cellCountX" format="integer" />
  36. <!-- The number of vertical cells in the CellLayout -->
  37. <attr name="cellCountY" format="integer" />
  38. </declare-styleable>
  39. <!-- Hotseat specific attributes. These attributes are used to customize
  40. the hotseat in XML files. -->
  41. <declare-styleable name="Hotseat">
  42. <!-- The number of horizontal cells in the CellLayout -->
  43. <attr name="cellCountX" />
  44. <!-- The number of vertical cells in the CellLayout -->
  45. <attr name="cellCountY" />
  46. </declare-styleable>
  47. <!-- CellLayout specific attributes. These attributes are used to customize
  48. a CellLayout view in XML files. -->
  49. <declare-styleable name="CellLayout">
  50. <!-- The width of a single cell -->
  51. <attr name="cellWidth" format="dimension" />
  52. <!-- The height of a single cell -->
  53. <attr name="cellHeight" format="dimension" />
  54. <!-- An override for the width and height gap to allow users to specify
  55. a specific size for the page using spacing instead of resolving the
  56. spacing from the width of the page -->
  57. <attr name="widthGap" format="dimension" />
  58. <attr name="heightGap" format="dimension" />
  59. <!-- The max gap size for each dimension -->
  60. <attr name="maxGap" format="dimension" />
  61. </declare-styleable>
  62. <!-- StrokedTextView specific attributes. -->
  63. <declare-styleable name="StrokedTextView">
  64. <!-- The color of the stroke outline -->
  65. <attr name="strokeColor" format="color" />
  66. <!-- The color of the text -->
  67. <attr name="strokeTextColor" format="color" />
  68. <!-- The width of the stroke -->
  69. <attr name="strokeWidth" format="float" />
  70. </declare-styleable>
  71. <!-- HolographicLinearLayout specific attributes. -->
  72. <declare-styleable name="HolographicLinearLayout">
  73. <!-- The source view to generate and apply the drawable states to/from -->
  74. <attr name="sourceImageViewId" format="integer" />
  75. <attr name="stateHotwordOn" format="boolean" />
  76. </declare-styleable>
  77. <!-- PagedView specific attributes. These attributes are used to customize
  78. a PagedView view in XML files. -->
  79. <declare-styleable name="PagedView">
  80. <!-- A spacing override for the icons within a page -->
  81. <attr name="pageLayoutWidthGap" format="dimension" />
  82. <attr name="pageLayoutHeightGap" format="dimension" />
  83. <!-- The page indicator for this workspace -->
  84. <attr name="pageIndicator" format="reference" />
  85. </declare-styleable>
  86. <declare-styleable name="BubbleTextView">
  87. <!-- A spacing override for the icons within a page -->
  88. <attr name="customShadows" format="boolean" />
  89. </declare-styleable>
  90. <!-- AppsCustomizePagedView specific attributes. These attributes are used to
  91. customize an AppsCustomizePagedView in xml files. -->
  92. <declare-styleable name="AppsCustomizePagedView">
  93. <!-- Max number of cells of applications horizontally -->
  94. <attr name="maxAppCellCountX" format="integer" />
  95. <!-- Max number of cells of applications vertically -->
  96. <attr name="maxAppCellCountY" format="integer" />
  97. <!-- Horizontal spacing between widgets and wallpapers -->
  98. <attr name="widgetCellWidthGap" format="dimension" />
  99. <!-- Vertical spacing between widgets -->
  100. <attr name="widgetCellHeightGap" format="dimension" />
  101. <!-- Number of widgets horizontally -->
  102. <attr name="widgetCountX" format="integer" />
  103. <!-- Number of widgets vertically -->
  104. <attr name="widgetCountY" format="integer" />
  105. </declare-styleable>
  106. <!-- XML attributes used by default_workspace.xml -->
  107. <declare-styleable name="Favorite">
  108. <attr name="className" format="string" />
  109. <attr name="packageName" format="string" />
  110. <attr name="container" format="string" />
  111. <attr name="screen" format="string" />
  112. <attr name="x" format="string" />
  113. <attr name="y" format="string" />
  114. <attr name="spanX" format="string" />
  115. <attr name="spanY" format="string" />
  116. <attr name="icon" format="reference" />
  117. <attr name="title" format="reference" />
  118. <attr name="uri" format="string" />
  119. </declare-styleable>
  120. <declare-styleable name="Extra">
  121. <attr name="key" format="string" />
  122. <attr name="value" format="string" />
  123. </declare-styleable>
  124. <declare-styleable name="Include">
  125. <attr name="workspace" format="reference" />
  126. </declare-styleable>
  127. <declare-styleable name="PreloadIconDrawable">
  128. <attr name="background" format="reference" />
  129. <attr name="ringOutset" format="dimension" />
  130. <attr name="indicatorSize" format="dimension" />
  131. </declare-styleable>
  132. </resources>