attrs.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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 xmlns:android="http://schemas.android.com/apk/res/android">
  19. <!-- Attributes used for launcher theme -->
  20. <attr name="allAppsScrimColor" format="color" />
  21. <attr name="allAppsNavBarScrimColor" format="color" />
  22. <attr name="popupColorPrimary" format="color" />
  23. <attr name="popupColorSecondary" format="color" />
  24. <attr name="popupColorTertiary" format="color" />
  25. <attr name="isMainColorDark" format="boolean" />
  26. <attr name="isWorkspaceDarkText" format="boolean" />
  27. <attr name="workspaceTextColor" format="color" />
  28. <attr name="workspaceShadowColor" format="color" />
  29. <attr name="workspaceAmbientShadowColor" format="color"/>
  30. <attr name="workspaceKeyShadowColor" format="color" />
  31. <attr name="workspaceStatusBarScrim" format="reference" />
  32. <attr name="widgetsTheme" format="reference" />
  33. <!-- BubbleTextView specific attributes. -->
  34. <declare-styleable name="BubbleTextView">
  35. <attr name="layoutHorizontal" format="boolean" />
  36. <attr name="iconSizeOverride" format="dimension" />
  37. <attr name="iconDisplay" format="integer">
  38. <enum name="workspace" value="0" />
  39. <enum name="all_apps" value="1" />
  40. <enum name="folder" value="2" />
  41. <enum name="widget_section" value="3" />
  42. <enum name="shortcut_popup" value="4" />
  43. </attr>
  44. <attr name="deferShadowGeneration" format="boolean" />
  45. <attr name="centerVertically" format="boolean" />
  46. </declare-styleable>
  47. <declare-styleable name="ShadowInfo">
  48. <attr name="ambientShadowColor" format="color" />
  49. <attr name="ambientShadowBlur" format="dimension" />
  50. <attr name="keyShadowColor" format="color" />
  51. <attr name="keyShadowBlur" format="dimension" />
  52. <attr name="keyShadowOffset" format="dimension" />
  53. </declare-styleable>
  54. <!-- PagedView specific attributes. These attributes are used to customize
  55. a PagedView view in XML files. -->
  56. <declare-styleable name="PagedView">
  57. <!-- The page indicator for this workspace -->
  58. <attr name="pageIndicator" format="reference" />
  59. </declare-styleable>
  60. <!-- BaseContainerView specific attributes. These attributes are used to customize
  61. AllApps view and WidgetsView in xml. -->
  62. <declare-styleable name="BaseContainerView">
  63. <!-- Drawable to use for the reveal animation -->
  64. <attr name="revealBackground" format="reference" />
  65. </declare-styleable>
  66. <!-- XML attributes used by default_workspace.xml -->
  67. <declare-styleable name="Favorite">
  68. <attr name="className" format="string" />
  69. <attr name="packageName" format="string" />
  70. <attr name="container" format="string" />
  71. <attr name="screen" format="string" />
  72. <attr name="x" format="string" />
  73. <attr name="y" format="string" />
  74. <attr name="spanX" format="string" />
  75. <attr name="spanY" format="string" />
  76. <attr name="icon" format="reference" />
  77. <attr name="title" format="string" />
  78. <attr name="uri" format="string" />
  79. </declare-styleable>
  80. <declare-styleable name="Extra">
  81. <attr name="key" format="string" />
  82. <attr name="value" format="string" />
  83. </declare-styleable>
  84. <declare-styleable name="Include">
  85. <attr name="workspace" format="reference" />
  86. <attr name="folderItems" format="reference" />
  87. </declare-styleable>
  88. <declare-styleable name="InsettableFrameLayout_Layout">
  89. <attr name="layout_ignoreInsets" format="boolean" />
  90. </declare-styleable>
  91. <declare-styleable name="ButtonDropTarget">
  92. <attr name="hideParentOnDisable" format="boolean" />
  93. </declare-styleable>
  94. <declare-styleable name="InvariantDeviceProfile">
  95. <attr name="name" format="string" />
  96. <attr name="minWidthDps" format="float" />
  97. <attr name="minHeightDps" format="float" />
  98. <attr name="numRows" format="integer" />
  99. <attr name="numColumns" format="integer" />
  100. <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
  101. <attr name="numFolderRows" format="integer" />
  102. <attr name="numFolderColumns" format="integer" />
  103. <!-- minAllAppsPredictionColumns defaults to numColumns, if not specified -->
  104. <attr name="minAllAppsPredictionColumns" format="integer" />
  105. <!-- numHotseatIcons defaults to numColumns, if not specified -->
  106. <attr name="numHotseatIcons" format="integer" />
  107. <attr name="iconSize" format="float" />
  108. <!-- landscapeIconSize defaults to iconSize, if not specified -->
  109. <attr name="landscapeIconSize" format="float" />
  110. <attr name="iconTextSize" format="float" />
  111. <attr name="defaultLayoutId" format="reference" />
  112. <attr name="demoModeLayoutId" format="reference" />
  113. </declare-styleable>
  114. <declare-styleable name="CellLayout">
  115. <attr name="containerType" format="integer">
  116. <enum name="workspace" value="0" />
  117. <enum name="hotseat" value="1" />
  118. <enum name="folder" value="2" />
  119. </attr>
  120. </declare-styleable>
  121. <declare-styleable name="ShadowDrawable">
  122. <attr name="android:src" />
  123. <attr name="android:shadowColor" />
  124. <attr name="android:elevation" />
  125. <attr name="darkTintColor" format="color"/>
  126. </declare-styleable>
  127. <declare-styleable name="RecyclerViewFastScroller">
  128. <attr name="canThumbDetach" format="boolean" />
  129. </declare-styleable>
  130. </resources>