attrs.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?xml version="1.0" encoding="utf-8"?><!--
  2. /* Copyright 2008, The Android Open Source Project
  3. **
  4. ** Licensed under the Apache License, Version 2.0 (the "License");
  5. ** you may not use this file except in compliance with the License.
  6. ** You may obtain a copy of the License at
  7. **
  8. ** http://www.apache.org/licenses/LICENSE-2.0
  9. **
  10. ** Unless required by applicable law or agreed to in writing, software
  11. ** distributed under the License is distributed on an "AS IS" BASIS,
  12. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. ** See the License for the specific language governing permissions and
  14. ** limitations under the License.
  15. */
  16. -->
  17. <resources xmlns:android="http://schemas.android.com/apk/res/android">
  18. <!-- Attributes used for launcher theme -->
  19. <attr name="allAppsScrimColor" format="color" />
  20. <attr name="allappsHeaderProtectionColor" format="color" />
  21. <attr name="allAppsNavBarScrimColor" format="color" />
  22. <attr name="allAppsTheme" format="reference" />
  23. <attr name="popupColorPrimary" format="color" />
  24. <attr name="popupColorSecondary" format="color" />
  25. <attr name="popupColorTertiary" format="color" />
  26. <attr name="popupShadeFirst" format="color" />
  27. <attr name="popupShadeSecond" format="color" />
  28. <attr name="popupShadeThird" format="color" />
  29. <attr name="isMainColorDark" format="boolean" />
  30. <attr name="isWorkspaceDarkText" format="boolean" />
  31. <attr name="workspaceTextColor" format="color" />
  32. <attr name="workspaceShadowColor" format="color" />
  33. <attr name="workspaceAmbientShadowColor" format="color" />
  34. <attr name="workspaceKeyShadowColor" format="color" />
  35. <attr name="workspaceStatusBarScrim" format="reference" />
  36. <attr name="widgetsTheme" format="reference" />
  37. <attr name="iconOnlyShortcutColor" format="color" />
  38. <attr name="eduHalfSheetBGColor" format="color" />
  39. <attr name="overviewScrimColor" format="color" />
  40. <attr name="popupNotificationDotColor" format="color" />
  41. <attr name="folderDotColor" format="color" />
  42. <attr name="folderFillColor" format="color" />
  43. <attr name="folderIconRadius" format="float" />
  44. <attr name="folderIconBorderColor" format="color" />
  45. <attr name="folderTextColor" format="color" />
  46. <attr name="folderHintColor" format="color" />
  47. <attr name="isFolderDarkText" format="boolean" />
  48. <attr name="workProfileOverlayTextColor" format="color" />
  49. <attr name="workspaceAccentColor" format="color" />
  50. <attr name="dropTargetHoverTextColor" format="color" />
  51. <!-- BubbleTextView specific attributes. -->
  52. <declare-styleable name="BubbleTextView">
  53. <attr name="layoutHorizontal" format="boolean" />
  54. <attr name="iconSizeOverride" format="dimension" />
  55. <attr name="iconDisplay" format="integer">
  56. <enum name="workspace" value="0" />
  57. <enum name="all_apps" value="1" />
  58. <enum name="folder" value="2" />
  59. <enum name="widget_section" value="3" />
  60. <enum name="shortcut_popup" value="4" />
  61. <enum name="taskbar" value="5" />
  62. <enum name="search_result_tall" value="6" />
  63. <enum name="search_result_small" value="7" />
  64. </attr>
  65. <attr name="centerVertically" format="boolean" />
  66. </declare-styleable>
  67. <!-- BubbleTextView specific attributes. -->
  68. <declare-styleable name="FolderIconPreview">
  69. <attr name="folderFillColor" />
  70. <attr name="folderIconBorderColor" />
  71. <attr name="folderDotColor" />
  72. </declare-styleable>
  73. <declare-styleable name="SearchResultSuggestion">
  74. <attr name="customIcon" format="reference" />
  75. <attr name="matchTextInsetWithQuery" format="boolean" />
  76. </declare-styleable>
  77. <declare-styleable name="ShadowInfo">
  78. <attr name="ambientShadowColor" format="color" />
  79. <attr name="ambientShadowBlur" format="dimension" />
  80. <attr name="keyShadowColor" format="color" />
  81. <attr name="keyShadowBlur" format="dimension" />
  82. <attr name="keyShadowOffsetX" format="dimension" />
  83. <attr name="keyShadowOffsetY" format="dimension" />
  84. </declare-styleable>
  85. <!-- PagedView specific attributes. These attributes are used to customize
  86. a PagedView view in XML files. -->
  87. <declare-styleable name="PagedView">
  88. <!-- The page indicator for this workspace -->
  89. <attr name="pageIndicator" format="reference" />
  90. </declare-styleable>
  91. <!-- XML attributes used by default_workspace.xml -->
  92. <declare-styleable name="Favorite">
  93. <attr name="className" format="string" />
  94. <attr name="packageName" format="string" />
  95. <attr name="container" format="string" />
  96. <attr name="screen" format="string" />
  97. <attr name="x" format="string" />
  98. <attr name="y" format="string" />
  99. <attr name="spanX" format="string" />
  100. <attr name="spanY" format="string" />
  101. <attr name="icon" format="reference" />
  102. <attr name="title" format="string" />
  103. <attr name="uri" format="string" />
  104. </declare-styleable>
  105. <declare-styleable name="Extra">
  106. <attr name="key" format="string" />
  107. <attr name="value" format="string" />
  108. </declare-styleable>
  109. <declare-styleable name="Include">
  110. <attr name="workspace" format="reference" />
  111. <attr name="folderItems" format="reference" />
  112. </declare-styleable>
  113. <declare-styleable name="InsettableFrameLayout_Layout">
  114. <attr name="layout_ignoreInsets" format="boolean" />
  115. </declare-styleable>
  116. <declare-styleable name="GridDisplayOption">
  117. <attr name="name" format="string" />
  118. <attr name="numRows" format="integer" />
  119. <attr name="numColumns" format="integer" />
  120. <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
  121. <attr name="numFolderRows" format="integer" />
  122. <attr name="numFolderColumns" format="integer" />
  123. <!-- numAllAppsColumns defaults to numColumns, if not specified -->
  124. <attr name="numAllAppsColumns" format="integer" />
  125. <!-- Number of columns to use when extending the all-apps size,
  126. defaults to 2 * numAllAppsColumns -->
  127. <attr name="numExtendedAllAppsColumns" format="integer" />
  128. <!-- numHotseatIcons defaults to numColumns, if not specified -->
  129. <attr name="numHotseatIcons" format="integer" />
  130. <!-- Number of icons to use when extending the hotseat size,
  131. defaults to 2 * numHotseatIcons -->
  132. <attr name="numExtendedHotseatIcons" format="integer" />
  133. <attr name="dbFile" format="string" />
  134. <attr name="defaultLayoutId" format="reference" />
  135. <attr name="demoModeLayoutId" format="reference" />
  136. <attr name="isScalable" format="boolean" />
  137. <attr name="devicePaddingId" format="reference" />
  138. </declare-styleable>
  139. <declare-styleable name="DevicePadding">
  140. <attr name="maxEmptySpace" format="dimension" />
  141. </declare-styleable>
  142. <declare-styleable name="DevicePaddingFormula">
  143. <attr name="a" format="float|dimension" />
  144. <attr name="b" format="float|dimension" />
  145. <attr name="c" format="float|dimension" />
  146. </declare-styleable>
  147. <declare-styleable name="ProfileDisplayOption">
  148. <attr name="name" />
  149. <attr name="minWidthDps" format="float" />
  150. <attr name="minHeightDps" format="float" />
  151. <!-- These min cell values are only used if GridDisplayOption#isScalable is true-->
  152. <attr name="minCellHeightDps" format="float" />
  153. <attr name="minCellWidthDps" format="float" />
  154. <attr name="borderSpacingDps" format="float" />
  155. <attr name="iconImageSize" format="float" />
  156. <!-- landscapeIconSize defaults to iconSize, if not specified -->
  157. <attr name="landscapeIconSize" format="float" />
  158. <attr name="iconTextSize" format="float" />
  159. <!-- landscapeIconTextSize defaults to iconTextSize, if not specified -->
  160. <attr name="landscapeIconTextSize" format="float" />
  161. <!-- If set, this display option is used to determine the default grid -->
  162. <attr name="canBeDefault" format="boolean|integer" >
  163. <!-- The profile can be default on split display devices -->
  164. <flag name="split_display" value="0x2" />
  165. </attr>
  166. <!-- The following values are only enabled if grid is supported. -->
  167. <!-- allAppsIconSize defaults to iconSize, if not specified -->
  168. <attr name="allAppsIconSize" format="float" />
  169. <!-- allAppsIconTextSize defaults to iconTextSize, if not specified -->
  170. <attr name="allAppsIconTextSize" format="float" />
  171. </declare-styleable>
  172. <declare-styleable name="CellLayout">
  173. <attr name="containerType" format="integer">
  174. <enum name="workspace" value="0" />
  175. <enum name="hotseat" value="1" />
  176. <enum name="folder" value="2" />
  177. </attr>
  178. </declare-styleable>
  179. <declare-styleable name="ShadowDrawable">
  180. <attr name="android:src" />
  181. <attr name="android:shadowColor" />
  182. <attr name="android:elevation" />
  183. <attr name="darkTintColor" format="color" />
  184. </declare-styleable>
  185. <declare-styleable name="RecyclerViewFastScroller">
  186. <attr name="canThumbDetach" format="boolean" />
  187. </declare-styleable>
  188. <declare-styleable name="LoggablePref">
  189. <attr name="android:key" />
  190. <attr name="android:defaultValue" />
  191. <!-- Ground truth of this Pref integer can be found in StatsLogManager -->
  192. <attr name="logIdOn" format="integer" />
  193. <attr name="logIdOff" format="integer" />
  194. </declare-styleable>
  195. <declare-styleable name="PreviewFragment">
  196. <attr name="android:name" />
  197. <attr name="android:id" />
  198. </declare-styleable>
  199. <declare-styleable name="WidgetsListRowHeader">
  200. <attr name="appIconSize" format="dimension" />
  201. </declare-styleable>
  202. </resources>