attrs.xml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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>
  19. <!-- Orientation of a widget. -->
  20. <attr name="direction">
  21. <!-- Vertical widget. -->
  22. <enum name="vertical" value="0" />
  23. <!-- Horizontal widget. -->
  24. <enum name="horizontal" value="1" />
  25. </attr>
  26. <skip />
  27. <!-- Workspace specific attributes. These attributes are used to customize
  28. the workspace in XML files. -->
  29. <declare-styleable name="Workspace">
  30. <!-- The first screen the workspace should display. -->
  31. <attr name="defaultScreen" format="integer" />
  32. </declare-styleable>
  33. <!-- CellLayout specific attributes. These attributes are used to customize
  34. a CellLayout view in XML files. -->
  35. <declare-styleable name="CellLayout">
  36. <!-- The width of a single cell -->
  37. <attr name="cellWidth" format="dimension" />
  38. <!-- The height of a single cell -->
  39. <attr name="cellHeight" format="dimension" />
  40. <!-- Padding to apply at the start of the long axis -->
  41. <attr name="longAxisStartPadding" format="dimension" />
  42. <!-- Padding to apply at the end of the long axis -->
  43. <attr name="longAxisEndPadding" format="dimension" />
  44. <!-- Padding to apply at the start of the short axis -->
  45. <attr name="shortAxisStartPadding" format="dimension" />
  46. <!-- Padding to apply at the end of the short axis -->
  47. <attr name="shortAxisEndPadding" format="dimension" />
  48. <!-- Number of cells on the short axis of the CellLayout -->
  49. <attr name="shortAxisCells" format="integer" />
  50. <!-- Number of cells on the long axis of the CellLayout -->
  51. <attr name="longAxisCells" format="integer" />
  52. </declare-styleable>
  53. <!-- DeleteZone specific attributes. These attributes are used to customize
  54. a DeleteZone view in XML files. -->
  55. <declare-styleable name="DeleteZone">
  56. <!-- Orientation of the delete zone. -->
  57. <attr name="direction" />
  58. </declare-styleable>
  59. <!-- HandleView specific attributes. These attributes are used to customize
  60. a HandleView view in XML files. -->
  61. <declare-styleable name="HandleView">
  62. <!-- Orientation of the handle. -->
  63. <attr name="direction" />
  64. </declare-styleable>
  65. <!-- XML attributes used by default_workspace.xml -->
  66. <declare-styleable name="Favorite">
  67. <attr name="className" format="string" />
  68. <attr name="packageName" format="string" />
  69. <attr name="screen" format="string" />
  70. <attr name="x" format="string" />
  71. <attr name="y" format="string" />
  72. <attr name="spanX" format="string" />
  73. <attr name="spanY" format="string" />
  74. <attr name="icon" format="reference" />
  75. <attr name="title" format="reference" />
  76. <attr name="uri" format="string" />
  77. </declare-styleable>
  78. <declare-styleable name="ClippedImageView">
  79. <attr name="ignoreZone" format="dimension" />
  80. </declare-styleable>
  81. </resources>