attrs.xml 7.0 KB

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