attrs.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  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. <attr name="allAppsButtonBgColor" format="color" />
  54. <attr name="allAppsButtonColor1" format="color" />
  55. <attr name="allAppsButtonColor2" format="color" />
  56. <attr name="allAppsButtonColor3" format="color" />
  57. <attr name="allAppsButtonColor4" format="color" />
  58. <!-- BubbleTextView specific attributes. -->
  59. <declare-styleable name="BubbleTextView">
  60. <attr name="layoutHorizontal" format="boolean" />
  61. <attr name="iconSizeOverride" format="dimension" />
  62. <attr name="iconDisplay" format="integer">
  63. <enum name="workspace" value="0" />
  64. <enum name="all_apps" value="1" />
  65. <enum name="folder" value="2" />
  66. <enum name="widget_section" value="3" />
  67. <enum name="shortcut_popup" value="4" />
  68. <enum name="taskbar" value="5" />
  69. <enum name="search_result_tall" value="6" />
  70. <enum name="search_result_small" value="7" />
  71. </attr>
  72. <attr name="centerVertically" format="boolean" />
  73. </declare-styleable>
  74. <!-- BubbleTextView specific attributes. -->
  75. <declare-styleable name="FolderIconPreview">
  76. <attr name="folderPreviewColor" />
  77. <attr name="folderIconBorderColor" />
  78. <attr name="folderDotColor" />
  79. </declare-styleable>
  80. <declare-styleable name="SearchResultSuggestion">
  81. <attr name="customIcon" format="reference" />
  82. <attr name="matchTextInsetWithQuery" format="boolean" />
  83. </declare-styleable>
  84. <declare-styleable name="ShadowInfo">
  85. <attr name="ambientShadowColor" format="color" />
  86. <attr name="ambientShadowBlur" format="dimension" />
  87. <attr name="keyShadowColor" format="color" />
  88. <attr name="keyShadowBlur" format="dimension" />
  89. <attr name="keyShadowOffsetX" format="dimension" />
  90. <attr name="keyShadowOffsetY" format="dimension" />
  91. </declare-styleable>
  92. <!-- PagedView specific attributes. These attributes are used to customize
  93. a PagedView view in XML files. -->
  94. <declare-styleable name="PagedView">
  95. <!-- The page indicator for this workspace -->
  96. <attr name="pageIndicator" format="reference" />
  97. </declare-styleable>
  98. <!-- XML attributes used by default_workspace.xml -->
  99. <declare-styleable name="Favorite">
  100. <attr name="className" format="string" />
  101. <attr name="packageName" format="string" />
  102. <attr name="container" format="string" />
  103. <attr name="screen" format="string" />
  104. <attr name="x" format="string" />
  105. <attr name="y" format="string" />
  106. <attr name="spanX" format="string" />
  107. <attr name="spanY" format="string" />
  108. <attr name="icon" format="reference" />
  109. <attr name="title" format="string" />
  110. <attr name="uri" format="string" />
  111. </declare-styleable>
  112. <declare-styleable name="Extra">
  113. <attr name="key" format="string" />
  114. <attr name="value" format="string" />
  115. </declare-styleable>
  116. <declare-styleable name="Include">
  117. <attr name="workspace" format="reference" />
  118. <attr name="folderItems" format="reference" />
  119. </declare-styleable>
  120. <declare-styleable name="InsettableFrameLayout_Layout">
  121. <attr name="layout_ignoreInsets" format="boolean" />
  122. </declare-styleable>
  123. <declare-styleable name="GridDisplayOption">
  124. <attr name="name" format="string" />
  125. <attr name="numRows" format="integer" />
  126. <attr name="numColumns" format="integer" />
  127. <!-- numSearchContainerColumns defaults to numColumns, if not specified -->
  128. <attr name="numSearchContainerColumns" format="integer" />
  129. <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
  130. <attr name="numFolderRows" format="integer" />
  131. <attr name="numFolderColumns" format="integer" />
  132. <!-- numAllAppsColumns defaults to numColumns, if not specified -->
  133. <attr name="numAllAppsColumns" format="integer" />
  134. <!-- Number of columns to use when extending the all-apps size,
  135. defaults to 2 * numAllAppsColumns -->
  136. <attr name="numExtendedAllAppsColumns" format="integer" />
  137. <!-- numHotseatIcons defaults to numColumns, if not specified -->
  138. <attr name="numHotseatIcons" format="integer" />
  139. <!-- Number of icons to use when shrinking the hotseat size,
  140. defaults to numHotseatIcons / 2 -->
  141. <attr name="numShrunkenHotseatIcons" format="integer" />
  142. <!-- Number of icons to use when extending the hotseat size,
  143. defaults to 2 * numHotseatIcons -->
  144. <attr name="numExtendedHotseatIcons" format="integer" />
  145. <!-- alignment of hotseat to the grid.
  146. Not applicable for 3 button mode when taskbar is enabled -->
  147. <!-- defaults to numColumns, if not specified -->
  148. <attr name="hotseatColumnSpan" format="integer" />
  149. <!-- defaults to numColumns, if not specified -->
  150. <attr name="hotseatColumnSpanLandscape" format="integer" />
  151. <!-- defaults to numColumns, if not specified -->
  152. <attr name="hotseatColumnSpanTwoPanelLandscape" format="integer" />
  153. <!-- defaults to numColumns, if not specified -->
  154. <attr name="hotseatColumnSpanTwoPanelPortrait" format="integer" />
  155. <attr name="dbFile" format="string" />
  156. <attr name="defaultLayoutId" format="reference" />
  157. <attr name="defaultSplitDisplayLayoutId" format="reference" />
  158. <attr name="demoModeLayoutId" format="reference" />
  159. <attr name="isScalable" format="boolean" />
  160. <attr name="devicePaddingId" format="reference" />
  161. <!-- By default all categories are enabled -->
  162. <attr name="deviceCategory" format="integer" >
  163. <!-- Enable on phone only -->
  164. <flag name="phone" value="1" />
  165. <!-- Enable on tablets only -->
  166. <flag name="tablet" value="2" />
  167. <!-- Enable on multi display devices only -->
  168. <flag name="multi_display" value="4" />
  169. </attr>
  170. </declare-styleable>
  171. <declare-styleable name="DevicePadding">
  172. <attr name="maxEmptySpace" format="dimension" />
  173. </declare-styleable>
  174. <declare-styleable name="DevicePaddingFormula">
  175. <attr name="a" format="float|dimension" />
  176. <attr name="b" format="float|dimension" />
  177. <attr name="c" format="float|dimension" />
  178. </declare-styleable>
  179. <declare-styleable name="ProfileDisplayOption">
  180. <attr name="name" />
  181. <attr name="minWidthDps" format="float" />
  182. <attr name="minHeightDps" format="float" />
  183. <!-- These min cell values are only used if GridDisplayOption#isScalable is true -->
  184. <attr name="minCellHeight" format="float" />
  185. <attr name="minCellWidth" format="float" />
  186. <!-- defaults to minCellHeight, if not specified -->
  187. <attr name="minCellHeightLandscape" format="float" />
  188. <!-- defaults to minCellWidth, if not specified -->
  189. <attr name="minCellWidthLandscape" format="float" />
  190. <!-- defaults to minCellHeight, if not specified -->
  191. <attr name="minCellHeightTwoPanelPortrait" format="float" />
  192. <!-- defaults to minCellWidth, if not specified -->
  193. <attr name="minCellWidthTwoPanelPortrait" format="float" />
  194. <!-- defaults to minCellHeight, if not specified -->
  195. <attr name="minCellHeightTwoPanelLandscape" format="float" />
  196. <!-- defaults to minCellWidth, if not specified -->
  197. <attr name="minCellWidthTwoPanelLandscape" format="float" />
  198. <!-- These border spaces are only used if GridDisplayOption#isScalable is true -->
  199. <!-- space to be used horizontally and vertically -->
  200. <attr name="borderSpace" format="float" />
  201. <!-- space to the right of the cell, defaults to borderSpace if not specified -->
  202. <attr name="borderSpaceHorizontal" format="float" />
  203. <!-- space below the cell, defaults to borderSpace if not specified -->
  204. <attr name="borderSpaceVertical" format="float" />
  205. <!-- space to be used horizontally and vertically,
  206. defaults to borderSpace if not specified -->
  207. <attr name="borderSpaceLandscape" format="float" />
  208. <!-- space to the right of the cell, defaults to borderSpaceLandscape if not specified -->
  209. <attr name="borderSpaceLandscapeHorizontal" format="float" />
  210. <!-- space below the cell, defaults to borderSpaceLandscape if not specified -->
  211. <attr name="borderSpaceLandscapeVertical" format="float" />
  212. <!-- space to be used horizontally and vertically in two panels,
  213. defaults to borderSpace if not specified -->
  214. <attr name="borderSpaceTwoPanelPortrait" format="float" />
  215. <!-- space to the right of the cell in two panels, defaults to
  216. borderSpaceTwoPanelPortrait if not specified -->
  217. <attr name="borderSpaceTwoPanelPortraitHorizontal" format="float" />
  218. <!-- space below the cell in two panels, defaults to borderSpaceTwoPanelPortrait
  219. if not specified -->
  220. <attr name="borderSpaceTwoPanelPortraitVertical" format="float" />
  221. <!-- space to be used horizontally and vertically in two panels,
  222. defaults to borderSpace if not specified -->
  223. <attr name="borderSpaceTwoPanelLandscape" format="float" />
  224. <!-- space to the right of the cell in two panels, defaults to
  225. borderSpaceTwoPanelLandscape if not specified -->
  226. <attr name="borderSpaceTwoPanelLandscapeHorizontal" format="float" />
  227. <!-- space below the cell in two panels, defaults to borderSpaceTwoPanelLandscape
  228. if not specified -->
  229. <attr name="borderSpaceTwoPanelLandscapeVertical" format="float" />
  230. <!-- These min cell values are only used if GridDisplayOption#isScalable is true -->
  231. <!-- defaults to minCellHeight, if not specified -->
  232. <attr name="allAppsCellHeight" format="float" />
  233. <!-- defaults to minCellWidth, if not specified -->
  234. <attr name="allAppsCellWidth" format="float" />
  235. <!-- defaults to allAppsCellHeight, if not specified -->
  236. <attr name="allAppsCellHeightLandscape" format="float" />
  237. <!-- defaults to allAppsCellWidth, if not specified -->
  238. <attr name="allAppsCellWidthLandscape" format="float" />
  239. <!-- defaults to allAppsCellHeight, if not specified -->
  240. <attr name="allAppsCellHeightTwoPanelPortrait" format="float" />
  241. <!-- defaults to allAppsCellWidth, if not specified -->
  242. <attr name="allAppsCellWidthTwoPanelPortrait" format="float" />
  243. <!-- defaults to allAppsCellHeight, if not specified -->
  244. <attr name="allAppsCellHeightTwoPanelLandscape" format="float" />
  245. <!-- defaults to allAppsCellWidth, if not specified -->
  246. <attr name="allAppsCellWidthTwoPanelLandscape" format="float" />
  247. <!-- The following values are only enabled if grid is supported. -->
  248. <!-- defaults to iconImageSize, if not specified -->
  249. <attr name="allAppsIconSize" format="float" />
  250. <!-- defaults to allAppsIconSize, if not specified -->
  251. <attr name="allAppsIconSizeTwoPanelPortrait" format="float" />
  252. <!-- defaults to allAppsIconSize, if not specified -->
  253. <attr name="allAppsIconSizeTwoPanelLandscape" format="float" />
  254. <!-- defaults to iconTextSize, if not specified -->
  255. <attr name="allAppsIconTextSize" format="float" />
  256. <!-- defaults to allAppsIconTextSize, if not specified -->
  257. <attr name="allAppsIconTextSizeTwoPanelPortrait" format="float" />
  258. <!-- defaults to allAppsIconTextSize, if not specified -->
  259. <attr name="allAppsIconTextSizeTwoPanelLandscape" format="float" />
  260. <!-- defaults to borderSpace, if not specified -->
  261. <!-- space to be used horizontally and vertically -->
  262. <attr name="allAppsBorderSpace" format="float" />
  263. <!-- space to the right of the cell, defaults to allAppsBorderSpace if not specified -->
  264. <attr name="allAppsBorderSpaceHorizontal" format="float" />
  265. <!-- space below the cell, defaults to allAppsBorderSpace if not specified -->
  266. <attr name="allAppsBorderSpaceVertical" format="float" />
  267. <!-- space to be used horizontally and vertically,
  268. defaults to allAppsBorderSpace if not specified -->
  269. <attr name="allAppsBorderSpaceLandscape" format="float" />
  270. <!-- space to the right of the cell, defaults to allAppsBorderSpaceLandscape
  271. if not specified -->
  272. <attr name="allAppsBorderSpaceLandscapeHorizontal" format="float" />
  273. <!-- space below the cell, defaults to allAppsBorderSpaceLandscape if not specified -->
  274. <attr name="allAppsBorderSpaceLandscapeVertical" format="float" />
  275. <!-- space to be used horizontally and vertically in two panels,
  276. defaults to allAppsBorderSpace if not specified -->
  277. <attr name="allAppsBorderSpaceTwoPanelPortrait" format="float" />
  278. <!-- space to the right of the cell in two panels, defaults to
  279. allAppsBorderSpaceTwoPanelPortrait if not specified -->
  280. <attr name="allAppsBorderSpaceTwoPanelPortraitHorizontal" format="float" />
  281. <!-- space below the cell in two panels, defaults to allAppsBorderSpaceTwoPanelPortrait
  282. if not specified -->
  283. <attr name="allAppsBorderSpaceTwoPanelPortraitVertical" format="float" />
  284. <!-- space to be used horizontally and vertically in two panels,
  285. defaults to allAppsBorderSpace if not specified -->
  286. <attr name="allAppsBorderSpaceTwoPanelLandscape" format="float" />
  287. <!-- space to the right of the cell in two panels, defaults to
  288. allAppsBorderSpaceTwoPanelLandscape if not specified -->
  289. <attr name="allAppsBorderSpaceTwoPanelLandscapeHorizontal" format="float" />
  290. <!-- space below the cell in two panels, defaults to allAppsBorderSpaceTwoPanelLandscape
  291. if not specified -->
  292. <attr name="allAppsBorderSpaceTwoPanelLandscapeVertical" format="float" />
  293. <!-- defaults to borderSpaceDps, if not specified -->
  294. <attr name="hotseatBorderSpace" format="float" />
  295. <!-- defaults to hotseatBorderSpace, if not specified -->
  296. <attr name="hotseatBorderSpaceLandscape" format="float" />
  297. <!-- defaults to hotseatBorderSpace, if not specified -->
  298. <attr name="hotseatBorderSpaceTwoPanelLandscape" format="float" />
  299. <!-- defaults to hotseatBorderSpace, if not specified -->
  300. <attr name="hotseatBorderSpaceTwoPanelPortrait" format="float" />
  301. <attr name="iconImageSize" format="float" />
  302. <!-- defaults to iconImageSize, if not specified -->
  303. <attr name="iconSizeLandscape" format="float" />
  304. <!-- defaults to iconSize, if not specified -->
  305. <attr name="iconSizeTwoPanelPortrait" format="float" />
  306. <!-- defaults to iconSize, if not specified -->
  307. <attr name="iconSizeTwoPanelLandscape" format="float" />
  308. <attr name="iconTextSize" format="float" />
  309. <!-- defaults to iconTextSize, if not specified -->
  310. <attr name="iconTextSizeLandscape" format="float" />
  311. <!-- defaults to iconTextSize, if not specified -->
  312. <attr name="iconTextSizeTwoPanelPortrait" format="float" />
  313. <!-- defaults to iconTextSize, if not specified -->
  314. <attr name="iconTextSizeTwoPanelLandscape" format="float" />
  315. <!-- If set, this display option is used to determine the default grid -->
  316. <attr name="canBeDefault" format="boolean" />
  317. <!-- Margin on left and right of the workspace when GridDisplayOption#isScalable is true -->
  318. <attr name="horizontalMargin" format="float"/>
  319. <!-- defaults to horizontalMargin if not specified -->
  320. <attr name="horizontalMarginLandscape" format="float"/>
  321. <!-- defaults to horizontalMargin if not specified -->
  322. <attr name="horizontalMarginTwoPanelLandscape" format="float"/>
  323. <!-- defaults to horizontalMargin if not specified -->
  324. <attr name="horizontalMarginTwoPanelPortrait" format="float"/>
  325. <!-- By default all are false -->
  326. <attr name="inlineQsb" format="integer" >
  327. <!-- Enable on landscape only -->
  328. <flag name="portrait" value="1" />
  329. <!-- Enable on portrait only -->
  330. <flag name="landscape" value="2" />
  331. <!-- Enable on two panel portrait only -->
  332. <flag name="twoPanelPortrait" value="4" />
  333. <!-- Enable on two panel landscape only -->
  334. <flag name="twoPanelLandscape" value="8" />
  335. </attr>
  336. </declare-styleable>
  337. <declare-styleable name="CellLayout">
  338. <attr name="containerType" format="integer">
  339. <enum name="workspace" value="0" />
  340. <enum name="hotseat" value="1" />
  341. <enum name="folder" value="2" />
  342. </attr>
  343. </declare-styleable>
  344. <declare-styleable name="ShadowDrawable">
  345. <attr name="android:src" />
  346. <attr name="android:shadowColor" />
  347. <attr name="android:elevation" />
  348. <attr name="darkTintColor" format="color" />
  349. </declare-styleable>
  350. <declare-styleable name="RecyclerViewFastScroller">
  351. <attr name="canThumbDetach" format="boolean" />
  352. </declare-styleable>
  353. <declare-styleable name="LoggablePref">
  354. <attr name="android:key" />
  355. <attr name="android:defaultValue" />
  356. <!-- Ground truth of this Pref integer can be found in StatsLogManager -->
  357. <attr name="logIdOn" format="integer" />
  358. <attr name="logIdOff" format="integer" />
  359. </declare-styleable>
  360. <declare-styleable name="PreviewFragment">
  361. <attr name="android:name" />
  362. <attr name="android:id" />
  363. </declare-styleable>
  364. <declare-styleable name="WidgetsListRowHeader">
  365. <attr name="appIconSize" format="dimension" />
  366. </declare-styleable>
  367. <declare-styleable name="WidgetSections">
  368. <!-- Component name of an app widget provider. -->
  369. <attr name="provider" format="string" />
  370. <!-- If true, keep the app widget under its app listing in addition to the widget category
  371. in the widget picker. Defaults to false if not specified. -->
  372. <attr name="alsoKeepInApp" format="boolean" />
  373. <!-- The category of an app widget provider. Defaults to -1 if not specified. -->
  374. <attr name="category" format="integer" />
  375. <!-- The title name of a widget category. -->
  376. <attr name="sectionTitle" format="reference" />
  377. <!-- The icon drawable of a widget category. -->
  378. <attr name="sectionDrawable" format="reference" />
  379. </declare-styleable>
  380. </resources>