attrs.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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="folder" value="2" />
  27. <enum name="widget_section" value="3" />
  28. <enum name="shortcut_popup" value="4" />
  29. </attr>
  30. <attr name="deferShadowGeneration" format="boolean" />
  31. <attr name="customShadows" format="boolean" />
  32. <attr name="centerVertically" format="boolean" />
  33. </declare-styleable>
  34. <!-- PagedView specific attributes. These attributes are used to customize
  35. a PagedView view in XML files. -->
  36. <declare-styleable name="PagedView">
  37. <!-- The page indicator for this workspace -->
  38. <attr name="pageIndicator" format="reference" />
  39. </declare-styleable>
  40. <!-- BaseContainerView specific attributes. These attributes are used to customize
  41. AllApps view and WidgetsView in xml. -->
  42. <declare-styleable name="BaseContainerView">
  43. <!-- Drawable to use for the reveal animation -->
  44. <attr name="revealBackground" format="reference" />
  45. </declare-styleable>
  46. <!-- XML attributes used by default_workspace.xml -->
  47. <declare-styleable name="Favorite">
  48. <attr name="className" format="string" />
  49. <attr name="packageName" format="string" />
  50. <attr name="container" format="string" />
  51. <attr name="screen" format="string" />
  52. <attr name="x" format="string" />
  53. <attr name="y" format="string" />
  54. <attr name="spanX" format="string" />
  55. <attr name="spanY" format="string" />
  56. <attr name="icon" format="reference" />
  57. <attr name="title" format="string" />
  58. <attr name="uri" format="string" />
  59. </declare-styleable>
  60. <declare-styleable name="Extra">
  61. <attr name="key" format="string" />
  62. <attr name="value" format="string" />
  63. </declare-styleable>
  64. <declare-styleable name="Include">
  65. <attr name="workspace" format="reference" />
  66. <attr name="folderItems" format="reference" />
  67. </declare-styleable>
  68. <declare-styleable name="InsettableFrameLayout_Layout">
  69. <attr name="layout_ignoreInsets" format="boolean" />
  70. </declare-styleable>
  71. <declare-styleable name="ButtonDropTarget">
  72. <attr name="hideParentOnDisable" format="boolean" />
  73. </declare-styleable>
  74. <declare-styleable name="InvariantDeviceProfile">
  75. <attr name="name" format="string" />
  76. <attr name="minWidthDps" format="float" />
  77. <attr name="minHeightDps" format="float" />
  78. <attr name="numRows" format="integer" />
  79. <attr name="numColumns" format="integer" />
  80. <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
  81. <attr name="numFolderRows" format="integer" />
  82. <attr name="numFolderColumns" format="integer" />
  83. <!-- minAllAppsPredictionColumns defaults to numColumns, if not specified -->
  84. <attr name="minAllAppsPredictionColumns" format="integer" />
  85. <!-- numHotseatIcons defaults to numColumns, if not specified -->
  86. <attr name="numHotseatIcons" format="integer" />
  87. <attr name="iconSize" format="float" />
  88. <attr name="iconTextSize" format="float" />
  89. <!-- hotseatIconSize defaults to iconSize, if not specified -->
  90. <attr name="hotseatIconSize" format="float" />
  91. <attr name="defaultLayoutId" format="reference" />
  92. </declare-styleable>
  93. <declare-styleable name="CellLayout">
  94. <attr name="containerType" format="integer">
  95. <enum name="workspace" value="0" />
  96. <enum name="hotseat" value="1" />
  97. <enum name="folder" value="2" />
  98. </attr>
  99. </declare-styleable>
  100. </resources>