launcher.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2007 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <org.kotei.launcher2.DragLayer
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. xmlns:launcher="http://schemas.android.com/apk/res/org.kotei.launcher2"
  16. android:id="@+id/drag_layer"
  17. android:layout_width="fill_parent"
  18. android:layout_height="fill_parent">
  19. <include layout="@layout/all_apps" />
  20. <!-- The workspace contains 3 screens of cells -->
  21. <org.kotei.launcher2.Workspace
  22. android:id="@+id/workspace"
  23. android:layout_width="fill_parent"
  24. android:layout_height="fill_parent"
  25. android:scrollbars="horizontal"
  26. android:fadeScrollbars="true"
  27. launcher:defaultScreen="2">
  28. <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
  29. <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
  30. <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
  31. <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
  32. <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
  33. </org.kotei.launcher2.Workspace>
  34. <org.kotei.launcher2.ClippedImageView
  35. android:id="@+id/previous_screen"
  36. android:layout_width="93dip"
  37. android:layout_height="@dimen/button_bar_height"
  38. android:layout_gravity="bottom|left"
  39. android:layout_marginLeft="6dip"
  40. android:scaleType="center"
  41. android:src="@drawable/home_arrows_left"
  42. android:onClick="previousScreen"
  43. launcher:ignoreZone="56dip"
  44. android:focusable="true"
  45. android:clickable="true" />
  46. <org.kotei.launcher2.ClippedImageView
  47. android:id="@+id/next_screen"
  48. android:layout_width="93dip"
  49. android:layout_height="@dimen/button_bar_height"
  50. android:layout_gravity="bottom|right"
  51. android:layout_marginRight="6dip"
  52. android:scaleType="center"
  53. android:src="@drawable/home_arrows_right"
  54. android:onClick="nextScreen"
  55. launcher:ignoreZone="-56dip"
  56. android:focusable="true"
  57. android:clickable="true" />
  58. <org.kotei.launcher2.DeleteZone
  59. android:id="@+id/delete_zone"
  60. android:layout_width="@dimen/delete_zone_size"
  61. android:layout_height="@dimen/delete_zone_size"
  62. android:paddingLeft="@dimen/delete_zone_padding"
  63. android:layout_marginBottom="@dimen/half_status_bar_height"
  64. android:layout_gravity="right|center_vertical"
  65. android:scaleType="center"
  66. android:src="@drawable/delete_zone_selector"
  67. android:visibility="invisible"
  68. launcher:direction="vertical"
  69. />
  70. <RelativeLayout
  71. android:id="@+id/all_apps_button_cluster"
  72. android:layout_height="fill_parent"
  73. android:layout_width="@dimen/button_bar_height_portrait"
  74. android:layout_gravity="right|center_vertical"
  75. android:layout_marginBottom="@dimen/half_status_bar_height"
  76. >
  77. <org.kotei.launcher2.HandleView
  78. style="@style/HotseatButton"
  79. android:id="@+id/all_apps_button"
  80. android:layout_centerVertical="true"
  81. android:layout_alignParentRight="true"
  82. android:src="@drawable/all_apps_button"
  83. launcher:direction="vertical"
  84. />
  85. <ImageView
  86. android:id="@+id/hotseat_left"
  87. style="@style/HotseatButton.Left"
  88. android:layout_below="@id/all_apps_button"
  89. android:src="@drawable/hotseat_phone"
  90. android:onClick="launchHotSeat"
  91. />
  92. <ImageView
  93. android:id="@+id/hotseat_right"
  94. style="@style/HotseatButton.Right"
  95. android:layout_above="@id/all_apps_button"
  96. android:src="@drawable/hotseat_browser"
  97. android:onClick="launchHotSeat"
  98. />
  99. </RelativeLayout>
  100. </org.kotei.launcher2.DragLayer>