The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2007 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
Joe Onorato | 7c312c1 | 2009-08-13 21:36:53 -0700 | [diff] [blame] | 17 | <com.android.launcher2.DragLayer |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Romain Guy | 4f20947 | 2010-03-04 12:07:31 -0800 | [diff] [blame] | 19 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 20 | |
Joe Onorato | 00acb12 | 2009-08-04 16:04:30 -0400 | [diff] [blame] | 21 | android:id="@+id/drag_layer" |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [diff] [blame] | 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent"> |
Joe Onorato | 5979117 | 2009-07-31 16:21:40 -0700 | [diff] [blame] | 24 | |
Adam Cohen | d22015c | 2010-07-26 22:02:18 -0700 | [diff] [blame] | 25 | <!-- The workspace contains 5 screens of cells --> |
Joe Onorato | a590252 | 2009-07-30 13:37:37 -0700 | [diff] [blame] | 26 | <com.android.launcher2.Workspace |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 27 | android:id="@+id/workspace" |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [diff] [blame] | 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="match_parent" |
Adam Cohen | d22015c | 2010-07-26 22:02:18 -0700 | [diff] [blame] | 30 | launcher:defaultScreen="2" |
| 31 | launcher:cellCountX="4" |
| 32 | launcher:cellCountY="4"> |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 33 | |
| 34 | <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> |
| 35 | <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> |
| 36 | <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> |
Mike Cleron | 3a2b3f2 | 2009-11-05 17:17:42 -0800 | [diff] [blame] | 37 | <include android:id="@+id/cell4" layout="@layout/workspace_screen" /> |
| 38 | <include android:id="@+id/cell5" layout="@layout/workspace_screen" /> |
| 39 | |
Joe Onorato | a590252 | 2009-07-30 13:37:37 -0700 | [diff] [blame] | 40 | </com.android.launcher2.Workspace> |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 41 | |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 42 | <include layout="@layout/apps_customize_pane" |
| 43 | android:id="@+id/apps_customize_pane" |
| 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="match_parent" |
| 46 | android:visibility="invisible" /> |
| 47 | |
Romain Guy | 8a73c51 | 2009-11-09 19:19:59 -0800 | [diff] [blame] | 48 | <ImageView |
| 49 | android:id="@+id/previous_screen" |
Romain Guy | 2c0a7ae | 2009-11-13 19:40:33 -0800 | [diff] [blame] | 50 | android:layout_width="93dip" |
Romain Guy | 8a73c51 | 2009-11-09 19:19:59 -0800 | [diff] [blame] | 51 | android:layout_height="@dimen/button_bar_height" |
| 52 | android:layout_gravity="bottom|left" |
| 53 | android:layout_marginLeft="6dip" |
| 54 | |
Joe Onorato | 8b5eef7 | 2010-03-29 16:19:42 -0700 | [diff] [blame] | 55 | android:scaleType="center" |
Romain Guy | 8a73c51 | 2009-11-09 19:19:59 -0800 | [diff] [blame] | 56 | android:src="@drawable/home_arrows_left" |
| 57 | |
| 58 | android:onClick="previousScreen" |
| 59 | |
| 60 | android:focusable="true" |
| 61 | android:clickable="true" /> |
| 62 | |
| 63 | <ImageView |
| 64 | android:id="@+id/next_screen" |
Romain Guy | 2c0a7ae | 2009-11-13 19:40:33 -0800 | [diff] [blame] | 65 | android:layout_width="93dip" |
Romain Guy | 8a73c51 | 2009-11-09 19:19:59 -0800 | [diff] [blame] | 66 | android:layout_height="@dimen/button_bar_height" |
| 67 | android:layout_gravity="bottom|right" |
| 68 | android:layout_marginRight="6dip" |
| 69 | |
Joe Onorato | 8b5eef7 | 2010-03-29 16:19:42 -0700 | [diff] [blame] | 70 | android:scaleType="center" |
Romain Guy | 8a73c51 | 2009-11-09 19:19:59 -0800 | [diff] [blame] | 71 | android:src="@drawable/home_arrows_right" |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 72 | |
Romain Guy | 8a73c51 | 2009-11-09 19:19:59 -0800 | [diff] [blame] | 73 | android:onClick="nextScreen" |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 74 | |
Romain Guy | 8a73c51 | 2009-11-09 19:19:59 -0800 | [diff] [blame] | 75 | android:focusable="true" |
| 76 | android:clickable="true" /> |
| 77 | |
Joe Onorato | a590252 | 2009-07-30 13:37:37 -0700 | [diff] [blame] | 78 | <com.android.launcher2.DeleteZone |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 79 | android:id="@+id/delete_zone" |
Daniel Sandler | e1d923a | 2010-04-28 14:01:54 -0400 | [diff] [blame] | 80 | android:layout_width="@dimen/delete_zone_size" |
| 81 | android:layout_height="@dimen/delete_zone_size" |
| 82 | android:paddingTop="@dimen/delete_zone_padding" |
Joe Onorato | 85a02a8 | 2009-09-08 12:34:22 -0700 | [diff] [blame] | 83 | android:layout_gravity="bottom|center_horizontal" |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 84 | |
| 85 | android:scaleType="center" |
Michael Jurka | 577d017 | 2010-12-17 20:04:50 -0800 | [diff] [blame] | 86 | android:drawableLeft="@drawable/delete_zone_selector" |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 87 | android:visibility="invisible" |
Joe Onorato | 5779e2a | 2009-10-06 13:19:30 -0700 | [diff] [blame] | 88 | launcher:direction="horizontal" |
| 89 | /> |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 90 | |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 91 | <RelativeLayout |
| 92 | android:id="@+id/all_apps_button_cluster" |
| 93 | android:layout_width="fill_parent" |
| 94 | android:layout_height="@dimen/button_bar_height" |
| 95 | android:layout_gravity="bottom|center_horizontal" |
Winson Chung | 4e6a976 | 2011-05-09 11:56:34 -0700 | [diff] [blame^] | 96 | android:paddingTop="2dip"> |
| 97 | <ImageView |
| 98 | android:id="@+id/hotseat_left" |
| 99 | style="@style/HotseatButton.Left" |
| 100 | android:layout_toLeftOf="@id/all_apps_button" |
| 101 | android:src="@drawable/hotseat_phone" |
| 102 | android:onClick="launchHotSeat" /> |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 103 | <com.android.launcher2.HandleView |
| 104 | style="@style/HotseatButton" |
| 105 | android:id="@+id/all_apps_button" |
Daniel Sandler | 786ae54 | 2010-04-28 00:09:19 -0400 | [diff] [blame] | 106 | android:layout_centerHorizontal="true" |
| 107 | android:layout_alignParentBottom="true" |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 108 | android:src="@drawable/all_apps_button" |
Winson Chung | 4e6a976 | 2011-05-09 11:56:34 -0700 | [diff] [blame^] | 109 | launcher:direction="horizontal" /> |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 110 | <ImageView |
| 111 | android:id="@+id/hotseat_right" |
| 112 | style="@style/HotseatButton.Right" |
| 113 | android:layout_toRightOf="@id/all_apps_button" |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 114 | android:src="@drawable/hotseat_browser" |
Winson Chung | 4e6a976 | 2011-05-09 11:56:34 -0700 | [diff] [blame^] | 115 | android:onClick="launchHotSeat" /> |
Daniel Sandler | c9b1877 | 2010-04-22 14:37:59 -0400 | [diff] [blame] | 116 | </RelativeLayout> |
| 117 | |
Joe Onorato | a590252 | 2009-07-30 13:37:37 -0700 | [diff] [blame] | 118 | </com.android.launcher2.DragLayer> |