attrs.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. <!-- BubbleTextView specific attributes. -->
  35. <declare-styleable name="BubbleTextView">
  36. <attr name="layoutHorizontal" format="boolean" />
  37. <attr name="iconSizeOverride" format="dimension" />
  38. <attr name="iconDisplay" format="integer">
  39. <enum name="workspace" value="0" />
  40. <enum name="all_apps" value="1" />
  41. <enum name="folder" value="2" />
  42. <enum name="widget_section" value="3" />
  43. <enum name="shortcut_popup" value="4" />
  44. </attr>
  45. <attr name="centerVertically" format="boolean" />
  46. </declare-styleable>
  47. <declare-styleable name="ShadowInfo">
  48. <attr name="ambientShadowColor" format="color" />
  49. <attr name="ambientShadowBlur" format="dimension" />
  50. <attr name="keyShadowColor" format="color" />
  51. <attr name="keyShadowBlur" format="dimension" />
  52. <attr name="keyShadowOffset" format="dimension" />
  53. </declare-styleable>
  54. <!-- PagedView specific attributes. These attributes are used to customize
  55. a PagedView view in XML files. -->
  56. <declare-styleable name="PagedView">
  57. <!-- The page indicator for this workspace -->
  58. <attr name="pageIndicator" format="reference" />
  59. </declare-styleable>
  60. <!-- XML attributes used by default_workspace.xml -->
  61. <declare-styleable name="Favorite">
  62. <attr name="className" format="string" />
  63. <attr name="packageName" format="string" />
  64. <attr name="container" format="string" />
  65. <attr name="screen" format="string" />
  66. <attr name="x" format="string" />
  67. <attr name="y" format="string" />
  68. <attr name="spanX" format="string" />
  69. <attr name="spanY" format="string" />
  70. <attr name="icon" format="reference" />
  71. <attr name="title" format="string" />
  72. <attr name="uri" format="string" />
  73. </declare-styleable>
  74. <declare-styleable name="Extra">
  75. <attr name="key" format="string" />
  76. <attr name="value" format="string" />
  77. </declare-styleable>
  78. <declare-styleable name="Include">
  79. <attr name="workspace" format="reference" />
  80. <attr name="folderItems" format="reference" />
  81. </declare-styleable>
  82. <declare-styleable name="InsettableFrameLayout_Layout">
  83. <attr name="layout_ignoreInsets" format="boolean" />
  84. </declare-styleable>
  85. <declare-styleable name="InvariantDeviceProfile">
  86. <attr name="name" format="string" />
  87. <attr name="minWidthDps" format="float" />
  88. <attr name="minHeightDps" format="float" />
  89. <attr name="numRows" format="integer" />
  90. <attr name="numColumns" format="integer" />
  91. <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
  92. <attr name="numFolderRows" format="integer" />
  93. <attr name="numFolderColumns" format="integer" />
  94. <!-- numHotseatIcons defaults to numColumns, if not specified -->
  95. <attr name="numHotseatIcons" format="integer" />
  96. <attr name="iconSize" format="float" />
  97. <!-- landscapeIconSize defaults to iconSize, if not specified -->
  98. <attr name="landscapeIconSize" format="float" />
  99. <attr name="iconTextSize" format="float" />
  100. <attr name="defaultLayoutId" format="reference" />
  101. <attr name="demoModeLayoutId" format="reference" />
  102. </declare-styleable>
  103. <declare-styleable name="CellLayout">
  104. <attr name="containerType" format="integer">
  105. <enum name="workspace" value="0" />
  106. <enum name="hotseat" value="1" />
  107. <enum name="folder" value="2" />
  108. </attr>
  109. </declare-styleable>
  110. <declare-styleable name="ShadowDrawable">
  111. <attr name="android:src" />
  112. <attr name="android:shadowColor" />
  113. <attr name="android:elevation" />
  114. <attr name="darkTintColor" format="color"/>
  115. </declare-styleable>
  116. <declare-styleable name="RecyclerViewFastScroller">
  117. <attr name="canThumbDetach" format="boolean" />
  118. </declare-styleable>
  119. <declare-styleable name="CustomAppWidgetProviderInfo">
  120. <attr name="providerId" format="integer" />
  121. <attr name="android:label" />
  122. <attr name="android:initialLayout" />
  123. <attr name="android:icon" />
  124. <attr name="android:previewImage" />
  125. <attr name="android:resizeMode" />
  126. <attr name="numRows" />
  127. <attr name="numColumns" />
  128. <attr name="numMinRows" format="integer" />
  129. <attr name="numMinColumns" format="integer" />
  130. </declare-styleable>
  131. </resources>