attrs.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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="allAppsInterimScrimAlpha" format="integer" />
  22. <attr name="allAppsNavBarScrimColor" format="color" />
  23. <attr name="allAppsTheme" format="reference" />
  24. <attr name="popupColorPrimary" format="color" />
  25. <attr name="popupColorSecondary" format="color" />
  26. <attr name="popupColorTertiary" format="color" />
  27. <attr name="isMainColorDark" format="boolean" />
  28. <attr name="isWorkspaceDarkText" format="boolean" />
  29. <attr name="workspaceTextColor" format="color" />
  30. <attr name="workspaceShadowColor" format="color" />
  31. <attr name="workspaceAmbientShadowColor" format="color"/>
  32. <attr name="workspaceKeyShadowColor" format="color" />
  33. <attr name="workspaceStatusBarScrim" format="reference" />
  34. <attr name="widgetsTheme" format="reference" />
  35. <attr name="loadingIconColor" format="color" />
  36. <attr name="iconOnlyShortcutColor" format="color"/>
  37. <attr name="eduHalfSheetBGColor" format="color"/>
  38. <attr name="folderDotColor" format="color" />
  39. <attr name="folderFillColor" format="color" />
  40. <attr name="folderIconRadius" format="float" />
  41. <attr name="folderIconBorderColor" format="color" />
  42. <attr name="folderTextColor" format="color" />
  43. <attr name="folderHintColor" format="color" />
  44. <attr name="workProfileOverlayTextColor" format="color" />
  45. <attr name="disabledIconAlpha" format="float" />
  46. <!-- BubbleTextView specific attributes. -->
  47. <declare-styleable name="BubbleTextView">
  48. <attr name="layoutHorizontal" format="boolean" />
  49. <attr name="iconSizeOverride" format="dimension" />
  50. <attr name="iconDisplay" format="integer">
  51. <enum name="workspace" value="0" />
  52. <enum name="all_apps" value="1" />
  53. <enum name="folder" value="2" />
  54. <enum name="widget_section" value="3" />
  55. <enum name="shortcut_popup" value="4" />
  56. </attr>
  57. <attr name="centerVertically" format="boolean" />
  58. </declare-styleable>
  59. <!-- BubbleTextView specific attributes. -->
  60. <declare-styleable name="FolderIconPreview">
  61. <attr name="folderFillColor" />
  62. <attr name="folderIconBorderColor" />
  63. <attr name="folderDotColor" />
  64. </declare-styleable>
  65. <declare-styleable name="ShadowInfo">
  66. <attr name="ambientShadowColor" format="color" />
  67. <attr name="ambientShadowBlur" format="dimension" />
  68. <attr name="keyShadowColor" format="color" />
  69. <attr name="keyShadowBlur" format="dimension" />
  70. <attr name="keyShadowOffset" format="dimension" />
  71. </declare-styleable>
  72. <!-- PagedView specific attributes. These attributes are used to customize
  73. a PagedView view in XML files. -->
  74. <declare-styleable name="PagedView">
  75. <!-- The page indicator for this workspace -->
  76. <attr name="pageIndicator" format="reference" />
  77. </declare-styleable>
  78. <!-- XML attributes used by default_workspace.xml -->
  79. <declare-styleable name="Favorite">
  80. <attr name="className" format="string" />
  81. <attr name="packageName" format="string" />
  82. <attr name="container" format="string" />
  83. <attr name="screen" format="string" />
  84. <attr name="x" format="string" />
  85. <attr name="y" format="string" />
  86. <attr name="spanX" format="string" />
  87. <attr name="spanY" format="string" />
  88. <attr name="icon" format="reference" />
  89. <attr name="title" format="string" />
  90. <attr name="uri" format="string" />
  91. </declare-styleable>
  92. <declare-styleable name="Extra">
  93. <attr name="key" format="string" />
  94. <attr name="value" format="string" />
  95. </declare-styleable>
  96. <declare-styleable name="Include">
  97. <attr name="workspace" format="reference" />
  98. <attr name="folderItems" format="reference" />
  99. </declare-styleable>
  100. <declare-styleable name="InsettableFrameLayout_Layout">
  101. <attr name="layout_ignoreInsets" format="boolean" />
  102. </declare-styleable>
  103. <declare-styleable name="GridDisplayOption">
  104. <attr name="name" format="string" />
  105. <attr name="numRows" format="integer" />
  106. <attr name="numColumns" format="integer" />
  107. <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
  108. <attr name="numFolderRows" format="integer" />
  109. <attr name="numFolderColumns" format="integer" />
  110. <!-- numHotseatIcons defaults to numColumns, if not specified -->
  111. <attr name="numHotseatIcons" format="integer" />
  112. <attr name="dbFile" format="string" />
  113. <!-- numAllAppsColumns defaults to numColumns, if not specified -->
  114. <attr name="numAllAppsColumns" format="integer" />
  115. <attr name="defaultLayoutId" format="reference" />
  116. <attr name="demoModeLayoutId" format="reference" />
  117. </declare-styleable>
  118. <declare-styleable name="ProfileDisplayOption">
  119. <attr name="name" />
  120. <attr name="minWidthDps" format="float" />
  121. <attr name="minHeightDps" format="float" />
  122. <attr name="iconImageSize" format="float" />
  123. <!-- landscapeIconSize defaults to iconSize, if not specified -->
  124. <attr name="landscapeIconSize" format="float" />
  125. <attr name="iconTextSize" format="float" />
  126. <!-- If true, this display option is used to determine the default grid -->
  127. <attr name="canBeDefault" format="boolean" />
  128. <!-- The following values are only enabled if grid is supported. -->
  129. <!-- allAppsIconSize defaults to iconSize, if not specified -->
  130. <attr name="allAppsIconSize" format="float" />
  131. <!-- allAppsIconTextSize defaults to iconTextSize, if not specified -->
  132. <attr name="allAppsIconTextSize" format="float" />
  133. </declare-styleable>
  134. <declare-styleable name="CellLayout">
  135. <attr name="containerType" format="integer">
  136. <enum name="workspace" value="0" />
  137. <enum name="hotseat" value="1" />
  138. <enum name="folder" value="2" />
  139. </attr>
  140. </declare-styleable>
  141. <declare-styleable name="ShadowDrawable">
  142. <attr name="android:src" />
  143. <attr name="android:shadowColor" />
  144. <attr name="android:elevation" />
  145. <attr name="darkTintColor" format="color"/>
  146. </declare-styleable>
  147. <declare-styleable name="RecyclerViewFastScroller">
  148. <attr name="canThumbDetach" format="boolean" />
  149. </declare-styleable>
  150. <declare-styleable name="PreviewFragment">
  151. <attr name="android:name" />
  152. <attr name="android:id" />
  153. </declare-styleable>
  154. </resources>