attrs.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. <!-- BubbleTextView specific attributes. -->
  20. <declare-styleable name="BubbleTextView">
  21. <attr name="layoutHorizontal" format="boolean" />
  22. <attr name="iconSizeOverride" format="dimension" />
  23. <attr name="iconDisplay" format="integer">
  24. <enum name="workspace" value="0" />
  25. <enum name="all_apps" value="1" />
  26. <enum name="widget_section" value="2" />
  27. </attr>
  28. <attr name="deferShadowGeneration" format="boolean" />
  29. <attr name="customShadows" format="boolean" />
  30. </declare-styleable>
  31. <!-- Page Indicator specific attributes. -->
  32. <declare-styleable name="PageIndicator">
  33. <attr name="windowSize" format="integer" />
  34. </declare-styleable>
  35. <!-- Workspace specific attributes. These attributes are used to customize
  36. the workspace in XML files. -->
  37. <declare-styleable name="Workspace">
  38. <!-- The first screen the workspace should display. -->
  39. <attr name="defaultScreen" format="integer" />
  40. <!-- The number of horizontal cells in the CellLayout -->
  41. <attr name="cellCountX" format="integer" />
  42. <!-- The number of vertical cells in the CellLayout -->
  43. <attr name="cellCountY" format="integer" />
  44. </declare-styleable>
  45. <!-- Hotseat specific attributes. These attributes are used to customize
  46. the hotseat in XML files. -->
  47. <declare-styleable name="Hotseat">
  48. <!-- The number of horizontal cells in the CellLayout -->
  49. <attr name="cellCountX" />
  50. <!-- The number of vertical cells in the CellLayout -->
  51. <attr name="cellCountY" />
  52. </declare-styleable>
  53. <!-- CellLayout specific attributes. These attributes are used to customize
  54. a CellLayout view in XML files. -->
  55. <declare-styleable name="CellLayout">
  56. <!-- The width of a single cell -->
  57. <attr name="cellWidth" format="dimension" />
  58. <!-- The height of a single cell -->
  59. <attr name="cellHeight" format="dimension" />
  60. <!-- An override for the width and height gap to allow users to specify
  61. a specific size for the page using spacing instead of resolving the
  62. spacing from the width of the page -->
  63. <attr name="widthGap" format="dimension" />
  64. <attr name="heightGap" format="dimension" />
  65. <!-- The max gap size for each dimension -->
  66. <attr name="maxGap" format="dimension" />
  67. </declare-styleable>
  68. <!-- PagedView specific attributes. These attributes are used to customize
  69. a PagedView view in XML files. -->
  70. <declare-styleable name="PagedView">
  71. <!-- A spacing override for the icons within a page -->
  72. <attr name="pageLayoutWidthGap" format="dimension" />
  73. <attr name="pageLayoutHeightGap" format="dimension" />
  74. <!-- The page indicator for this workspace -->
  75. <attr name="pageIndicator" format="reference" />
  76. </declare-styleable>
  77. <!-- XML attributes used by default_workspace.xml -->
  78. <declare-styleable name="Favorite">
  79. <attr name="className" format="string" />
  80. <attr name="packageName" format="string" />
  81. <attr name="container" format="string" />
  82. <attr name="screen" format="string" />
  83. <attr name="x" format="string" />
  84. <attr name="y" format="string" />
  85. <attr name="spanX" format="string" />
  86. <attr name="spanY" format="string" />
  87. <attr name="icon" format="reference" />
  88. <attr name="title" format="reference" />
  89. <attr name="uri" format="string" />
  90. </declare-styleable>
  91. <declare-styleable name="Extra">
  92. <attr name="key" format="string" />
  93. <attr name="value" format="string" />
  94. </declare-styleable>
  95. <declare-styleable name="Include">
  96. <attr name="workspace" format="reference" />
  97. <attr name="folderItems" format="reference" />
  98. </declare-styleable>
  99. <declare-styleable name="PreloadIconDrawable">
  100. <attr name="background" format="reference" />
  101. <attr name="ringOutset" format="dimension" />
  102. <attr name="indicatorSize" format="dimension" />
  103. </declare-styleable>
  104. <declare-styleable name="InsettableFrameLayout_Layout">
  105. <attr name="layout_ignoreInsets" format="boolean" />
  106. </declare-styleable>
  107. </resources>