attrs.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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="folderPaginationColor" format="color" />
  43. <attr name="folderPreviewColor" format="color" />
  44. <attr name="folderBackgroundColor" format="color" />
  45. <attr name="folderIconRadius" format="float" />
  46. <attr name="folderIconBorderColor" format="color" />
  47. <attr name="folderTextColor" format="color" />
  48. <attr name="folderHintColor" format="color" />
  49. <attr name="isFolderDarkText" format="boolean" />
  50. <attr name="workProfileOverlayTextColor" format="color" />
  51. <attr name="workspaceAccentColor" format="color" />
  52. <attr name="dropTargetHoverTextColor" format="color" />
  53. <!-- BubbleTextView specific attributes. -->
  54. <declare-styleable name="BubbleTextView">
  55. <attr name="layoutHorizontal" format="boolean" />
  56. <attr name="iconSizeOverride" format="dimension" />
  57. <attr name="iconDisplay" format="integer">
  58. <enum name="workspace" value="0" />
  59. <enum name="all_apps" value="1" />
  60. <enum name="folder" value="2" />
  61. <enum name="widget_section" value="3" />
  62. <enum name="shortcut_popup" value="4" />
  63. <enum name="taskbar" value="5" />
  64. <enum name="search_result_tall" value="6" />
  65. <enum name="search_result_small" value="7" />
  66. </attr>
  67. <attr name="centerVertically" format="boolean" />
  68. </declare-styleable>
  69. <!-- BubbleTextView specific attributes. -->
  70. <declare-styleable name="FolderIconPreview">
  71. <attr name="folderPreviewColor" />
  72. <attr name="folderIconBorderColor" />
  73. <attr name="folderDotColor" />
  74. </declare-styleable>
  75. <declare-styleable name="SearchResultSuggestion">
  76. <attr name="customIcon" format="reference" />
  77. <attr name="matchTextInsetWithQuery" format="boolean" />
  78. </declare-styleable>
  79. <declare-styleable name="ShadowInfo">
  80. <attr name="ambientShadowColor" format="color" />
  81. <attr name="ambientShadowBlur" format="dimension" />
  82. <attr name="keyShadowColor" format="color" />
  83. <attr name="keyShadowBlur" format="dimension" />
  84. <attr name="keyShadowOffsetX" format="dimension" />
  85. <attr name="keyShadowOffsetY" format="dimension" />
  86. </declare-styleable>
  87. <!-- PagedView specific attributes. These attributes are used to customize
  88. a PagedView view in XML files. -->
  89. <declare-styleable name="PagedView">
  90. <!-- The page indicator for this workspace -->
  91. <attr name="pageIndicator" format="reference" />
  92. </declare-styleable>
  93. <!-- XML attributes used by default_workspace.xml -->
  94. <declare-styleable name="Favorite">
  95. <attr name="className" format="string" />
  96. <attr name="packageName" format="string" />
  97. <attr name="container" format="string" />
  98. <attr name="screen" format="string" />
  99. <attr name="x" format="string" />
  100. <attr name="y" format="string" />
  101. <attr name="spanX" format="string" />
  102. <attr name="spanY" format="string" />
  103. <attr name="icon" format="reference" />
  104. <attr name="title" format="string" />
  105. <attr name="uri" format="string" />
  106. </declare-styleable>
  107. <declare-styleable name="Extra">
  108. <attr name="key" format="string" />
  109. <attr name="value" format="string" />
  110. </declare-styleable>
  111. <declare-styleable name="Include">
  112. <attr name="workspace" format="reference" />
  113. <attr name="folderItems" format="reference" />
  114. </declare-styleable>
  115. <declare-styleable name="InsettableFrameLayout_Layout">
  116. <attr name="layout_ignoreInsets" format="boolean" />
  117. </declare-styleable>
  118. <declare-styleable name="GridDisplayOption">
  119. <attr name="name" format="string" />
  120. <attr name="numRows" format="integer" />
  121. <attr name="numColumns" format="integer" />
  122. <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
  123. <attr name="numFolderRows" format="integer" />
  124. <attr name="numFolderColumns" format="integer" />
  125. <!-- numAllAppsColumns defaults to numColumns, if not specified -->
  126. <attr name="numAllAppsColumns" format="integer" />
  127. <!-- Number of columns to use when extending the all-apps size,
  128. defaults to 2 * numAllAppsColumns -->
  129. <attr name="numExtendedAllAppsColumns" format="integer" />
  130. <!-- numHotseatIcons defaults to numColumns, if not specified -->
  131. <attr name="numHotseatIcons" format="integer" />
  132. <!-- Number of icons to use when extending the hotseat size,
  133. defaults to 2 * numHotseatIcons -->
  134. <attr name="numExtendedHotseatIcons" format="integer" />
  135. <attr name="dbFile" format="string" />
  136. <attr name="defaultLayoutId" format="reference" />
  137. <attr name="defaultSplitDisplayLayoutId" format="reference" />
  138. <attr name="demoModeLayoutId" format="reference" />
  139. <attr name="isScalable" format="boolean" />
  140. <attr name="devicePaddingId" format="reference" />
  141. <!-- By default all categories are enabled -->
  142. <attr name="deviceCategory" format="integer" >
  143. <!-- Enable on phone only -->
  144. <flag name="phone" value="1" />
  145. <!-- Enable on tablets only -->
  146. <flag name="tablet" value="2" />
  147. <!-- Enable on multi display devices only -->
  148. <flag name="multi_display" value="4" />
  149. </attr>
  150. </declare-styleable>
  151. <declare-styleable name="DevicePadding">
  152. <attr name="maxEmptySpace" format="dimension" />
  153. </declare-styleable>
  154. <declare-styleable name="DevicePaddingFormula">
  155. <attr name="a" format="float|dimension" />
  156. <attr name="b" format="float|dimension" />
  157. <attr name="c" format="float|dimension" />
  158. </declare-styleable>
  159. <declare-styleable name="ProfileDisplayOption">
  160. <attr name="name" />
  161. <attr name="minWidthDps" format="float" />
  162. <attr name="minHeightDps" format="float" />
  163. <!-- These min cell values are only used if GridDisplayOption#isScalable is true -->
  164. <attr name="minCellHeightDps" format="float" />
  165. <attr name="minCellWidthDps" format="float" />
  166. <!-- twoPanelPortraitMinCellWidthDps defaults to minCellHeightDps, if not specified -->
  167. <attr name="twoPanelPortraitMinCellHeightDps" format="float" />
  168. <!-- twoPanelPortraitMinCellHeightDps defaults to minCellWidthDps, if not specified -->
  169. <attr name="twoPanelPortraitMinCellWidthDps" format="float" />
  170. <!-- twoPanelLandscapeMinCellHeightDps defaults to minCellHeightDps, if not specified -->
  171. <attr name="twoPanelLandscapeMinCellHeightDps" format="float" />
  172. <!-- twoPanelLandscapeMinCellWidthDps defaults to minCellWidthDps, if not specified -->
  173. <attr name="twoPanelLandscapeMinCellWidthDps" format="float" />
  174. <!-- These border spaces are only used if GridDisplayOption#isScalable is true -->
  175. <!-- space to be used horizontally and vertically -->
  176. <attr name="borderSpaceDps" format="float" />
  177. <!-- space to the right of the cell, defaults to borderSpaceDps if not specified -->
  178. <attr name="borderSpaceHorizontalDps" format="float" />
  179. <!-- space below the cell, defaults to borderSpaceDps if not specified -->
  180. <attr name="borderSpaceVerticalDps" format="float" />
  181. <!-- space to be used horizontally and vertically in two panels,
  182. defaults to borderSpaceDps if not specified -->
  183. <attr name="twoPanelPortraitBorderSpaceDps" format="float" />
  184. <!-- space to the right of the cell in two panels, defaults to
  185. twoPanelPortraitBorderSpaceDps if not specified -->
  186. <attr name="twoPanelPortraitBorderSpaceHorizontalDps" format="float" />
  187. <!-- space below the cell in two panels, defaults to twoPanelPortraitBorderSpaceDps
  188. if not specified -->
  189. <attr name="twoPanelPortraitBorderSpaceVerticalDps" format="float" />
  190. <!-- space to be used horizontally and vertically in two panels,
  191. defaults to borderSpaceDps if not specified -->
  192. <attr name="twoPanelLandscapeBorderSpaceDps" format="float" />
  193. <!-- space to the right of the cell in two panels, defaults to
  194. twoPanelLandscapeBorderSpaceDps if not specified -->
  195. <attr name="twoPanelLandscapeBorderSpaceHorizontalDps" format="float" />
  196. <!-- space below the cell in two panels, defaults to twoPanelLandscapeBorderSpaceDps
  197. if not specified -->
  198. <attr name="twoPanelLandscapeBorderSpaceVerticalDps" format="float" />
  199. <!-- allAppsCellSpacingDps defaults to borderSpaceDps, if not specified -->
  200. <attr name="allAppsCellSpacingDps" format="float" />
  201. <!-- The following values are only enabled if grid is supported. -->
  202. <!-- allAppsIconSize defaults to iconSize, if not specified -->
  203. <attr name="allAppsIconSize" format="float" />
  204. <!-- allAppsIconTextSize defaults to iconTextSize, if not specified -->
  205. <attr name="allAppsIconTextSize" format="float" />
  206. <attr name="iconImageSize" format="float" />
  207. <!-- landscapeIconSize defaults to iconImageSize, if not specified -->
  208. <attr name="landscapeIconSize" format="float" />
  209. <!-- twoPanelPortraitIconSize defaults to iconImageSize, if not specified -->
  210. <attr name="twoPanelPortraitIconSize" format="float" />
  211. <!-- twoPanelLandscapeIconSize defaults to iconImageSize, if not specified -->
  212. <attr name="twoPanelLandscapeIconSize" format="float" />
  213. <attr name="iconTextSize" format="float" />
  214. <!-- landscapeIconTextSize defaults to iconTextSize, if not specified -->
  215. <attr name="landscapeIconTextSize" format="float" />
  216. <!-- twoPanelPortraitIconTextSize defaults to iconTextSize, if not specified -->
  217. <attr name="twoPanelPortraitIconTextSize" format="float" />
  218. <!-- twoPanelLandscapeIconTextSize defaults to iconTextSize, if not specified -->
  219. <attr name="twoPanelLandscapeIconTextSize" format="float" />
  220. <!-- If set, this display option is used to determine the default grid -->
  221. <attr name="canBeDefault" format="boolean" />
  222. <!-- Margin on left and right of the workspace when GridDisplayOption#isScalable is true -->
  223. <attr name="horizontalMargin" format="float"/>
  224. <!-- twoPanelLandscapeHorizontalMargin defaults to horizontalMargin if not specified -->
  225. <attr name="twoPanelLandscapeHorizontalMargin" format="float"/>
  226. <!-- twoPanelPortraitHorizontalMargin defaults to horizontalMargin if not specified -->
  227. <attr name="twoPanelPortraitHorizontalMargin" format="float"/>
  228. </declare-styleable>
  229. <declare-styleable name="CellLayout">
  230. <attr name="containerType" format="integer">
  231. <enum name="workspace" value="0" />
  232. <enum name="hotseat" value="1" />
  233. <enum name="folder" value="2" />
  234. </attr>
  235. </declare-styleable>
  236. <declare-styleable name="ShadowDrawable">
  237. <attr name="android:src" />
  238. <attr name="android:shadowColor" />
  239. <attr name="android:elevation" />
  240. <attr name="darkTintColor" format="color" />
  241. </declare-styleable>
  242. <declare-styleable name="RecyclerViewFastScroller">
  243. <attr name="canThumbDetach" format="boolean" />
  244. </declare-styleable>
  245. <declare-styleable name="LoggablePref">
  246. <attr name="android:key" />
  247. <attr name="android:defaultValue" />
  248. <!-- Ground truth of this Pref integer can be found in StatsLogManager -->
  249. <attr name="logIdOn" format="integer" />
  250. <attr name="logIdOff" format="integer" />
  251. </declare-styleable>
  252. <declare-styleable name="PreviewFragment">
  253. <attr name="android:name" />
  254. <attr name="android:id" />
  255. </declare-styleable>
  256. <declare-styleable name="WidgetsListRowHeader">
  257. <attr name="appIconSize" format="dimension" />
  258. </declare-styleable>
  259. <declare-styleable name="WidgetSections">
  260. <!-- Component name of an app widget provider. -->
  261. <attr name="provider" format="string" />
  262. <!-- If true, keep the app widget under its app listing in addition to the widget category
  263. in the widget picker. Defaults to false if not specified. -->
  264. <attr name="alsoKeepInApp" format="boolean" />
  265. <!-- The category of an app widget provider. Defaults to -1 if not specified. -->
  266. <attr name="category" format="integer" />
  267. <!-- The title name of a widget category. -->
  268. <attr name="sectionTitle" format="reference" />
  269. <!-- The icon drawable of a widget category. -->
  270. <attr name="sectionDrawable" format="reference" />
  271. </declare-styleable>
  272. </resources>