attrs.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. <!-- Page Indicator specific attributes. -->
  20. <declare-styleable name="PageIndicator">
  21. <attr name="windowSize" format="integer" />
  22. </declare-styleable>
  23. <!-- Workspace specific attributes. These attributes are used to customize
  24. the workspace in XML files. -->
  25. <declare-styleable name="Workspace">
  26. <!-- The first screen the workspace should display. -->
  27. <attr name="defaultScreen" format="integer" />
  28. <!-- The number of horizontal cells in the CellLayout -->
  29. <attr name="cellCountX" format="integer" />
  30. <!-- The number of vertical cells in the CellLayout -->
  31. <attr name="cellCountY" format="integer" />
  32. </declare-styleable>
  33. <!-- Hotseat specific attributes. These attributes are used to customize
  34. the hotseat in XML files. -->
  35. <declare-styleable name="Hotseat">
  36. <!-- The number of horizontal cells in the CellLayout -->
  37. <attr name="cellCountX" />
  38. <!-- The number of vertical cells in the CellLayout -->
  39. <attr name="cellCountY" />
  40. </declare-styleable>
  41. <!-- CellLayout specific attributes. These attributes are used to customize
  42. a CellLayout view in XML files. -->
  43. <declare-styleable name="CellLayout">
  44. <!-- The width of a single cell -->
  45. <attr name="cellWidth" format="dimension" />
  46. <!-- The height of a single cell -->
  47. <attr name="cellHeight" format="dimension" />
  48. <!-- An override for the width and height gap to allow users to specify
  49. a specific size for the page using spacing instead of resolving the
  50. spacing from the width of the page -->
  51. <attr name="widthGap" format="dimension" />
  52. <attr name="heightGap" format="dimension" />
  53. <!-- The max gap size for each dimension -->
  54. <attr name="maxGap" format="dimension" />
  55. </declare-styleable>
  56. <!-- StrokedTextView specific attributes. -->
  57. <declare-styleable name="StrokedTextView">
  58. <!-- The color of the stroke outline -->
  59. <attr name="strokeColor" format="color" />
  60. <!-- The color of the text -->
  61. <attr name="strokeTextColor" format="color" />
  62. <!-- The width of the stroke -->
  63. <attr name="strokeWidth" format="float" />
  64. </declare-styleable>
  65. <!-- PagedView specific attributes. These attributes are used to customize
  66. a PagedView view in XML files. -->
  67. <declare-styleable name="PagedView">
  68. <!-- A spacing override for the icons within a page -->
  69. <attr name="pageLayoutWidthGap" format="dimension" />
  70. <attr name="pageLayoutHeightGap" format="dimension" />
  71. <!-- The page indicator for this workspace -->
  72. <attr name="pageIndicator" format="reference" />
  73. </declare-styleable>
  74. <declare-styleable name="BubbleTextView">
  75. <!-- A spacing override for the icons within a page -->
  76. <attr name="customShadows" format="boolean" />
  77. </declare-styleable>
  78. <!-- AppsCustomizePagedView specific attributes. These attributes are used to
  79. customize an AppsCustomizePagedView in xml files. -->
  80. <declare-styleable name="AppsCustomizePagedView">
  81. <!-- Max number of cells of applications horizontally -->
  82. <attr name="maxAppCellCountX" format="integer" />
  83. <!-- Max number of cells of applications vertically -->
  84. <attr name="maxAppCellCountY" format="integer" />
  85. <!-- Horizontal spacing between widgets and wallpapers -->
  86. <attr name="widgetCellWidthGap" format="dimension" />
  87. <!-- Vertical spacing between widgets -->
  88. <attr name="widgetCellHeightGap" format="dimension" />
  89. <!-- Number of widgets horizontally -->
  90. <attr name="widgetCountX" format="integer" />
  91. <!-- Number of widgets vertically -->
  92. <attr name="widgetCountY" format="integer" />
  93. </declare-styleable>
  94. <!-- XML attributes used by default_workspace.xml -->
  95. <declare-styleable name="Favorite">
  96. <attr name="className" format="string" />
  97. <attr name="packageName" format="string" />
  98. <attr name="container" format="string" />
  99. <attr name="screen" format="string" />
  100. <attr name="x" format="string" />
  101. <attr name="y" format="string" />
  102. <attr name="spanX" format="string" />
  103. <attr name="spanY" format="string" />
  104. <attr name="icon" format="reference" />
  105. <attr name="title" format="reference" />
  106. <attr name="uri" format="string" />
  107. </declare-styleable>
  108. <declare-styleable name="Extra">
  109. <attr name="key" format="string" />
  110. <attr name="value" format="string" />
  111. </declare-styleable>
  112. <declare-styleable name="Include">
  113. <attr name="workspace" format="reference" />
  114. <attr name="folderItems" format="reference" />
  115. </declare-styleable>
  116. <declare-styleable name="PreloadIconDrawable">
  117. <attr name="background" format="reference" />
  118. <attr name="ringOutset" format="dimension" />
  119. <attr name="indicatorSize" format="dimension" />
  120. </declare-styleable>
  121. <declare-styleable name="InsettableFrameLayout_Layout">
  122. <attr name="layout_ignoreInsets" format="boolean" />
  123. </declare-styleable>
  124. </resources>