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