Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 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 | |
| 17 | <!-- Note: GesturesPanel is a special implementation that forces the widget |
| 18 | to be opaque for performance reasons. Make sure it visually is. --> |
| 19 | <com.android.launcher.GesturesPanel |
| 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | |
| 22 | android:id="@+id/gestures_panel" |
| 23 | android:layout_width="fill_parent" |
| 24 | android:layout_height="fill_parent"> |
| 25 | |
| 26 | <ViewSwitcher |
| 27 | android:id="@+id/gestures_actions" |
| 28 | android:layout_width="fill_parent" |
| 29 | android:layout_height="83dip" |
| 30 | android:layout_alignParentBottom="true" |
| 31 | |
| 32 | android:inAnimation="@anim/fade_in_fast" |
| 33 | android:outAnimation="@anim/fade_out_fast" |
| 34 | |
| 35 | android:foregroundGravity="top|fill_horizontal" |
| 36 | android:foreground="@*android:drawable/title_bar_shadow" |
| 37 | android:background="@android:drawable/title_bar_tall"> |
| 38 | |
| 39 | <TextView |
| 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="fill_parent" |
| 42 | android:layout_gravity="center_horizontal" |
| 43 | |
| 44 | android:gravity="center_vertical" |
| 45 | |
| 46 | android:shadowColor="#FF000000" |
| 47 | android:shadowRadius="2.0" |
| 48 | |
Romain Guy | aad5ef4 | 2009-06-10 02:48:37 -0700 | [diff] [blame] | 49 | android:drawablePadding="8dip" |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 50 | android:textAppearance="?android:attr/textAppearanceLarge" |
| 51 | android:ellipsize="end" |
| 52 | android:maxLines="2" |
| 53 | android:text="@string/gestures_instructions" /> |
| 54 | |
| 55 | <TextView |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="fill_parent" |
| 58 | android:layout_gravity="center_horizontal" |
| 59 | |
| 60 | android:gravity="center_vertical" |
| 61 | |
| 62 | android:shadowColor="#FF000000" |
| 63 | android:shadowRadius="2.0" |
| 64 | |
Romain Guy | aad5ef4 | 2009-06-10 02:48:37 -0700 | [diff] [blame] | 65 | android:drawablePadding="8dip" |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 66 | android:textAppearance="?android:attr/textAppearanceLarge" |
| 67 | android:ellipsize="end" |
| 68 | android:maxLines="2" |
| 69 | android:text="@string/gestures_instructions" /> |
| 70 | |
| 71 | </ViewSwitcher> |
| 72 | |
| 73 | <android.gesture.GestureOverlayView |
| 74 | android:id="@+id/gestures_overlay" |
| 75 | android:layout_width="fill_parent" |
| 76 | android:layout_height="0dip" |
| 77 | android:layout_weight="1.0" |
| 78 | android:layout_alignParentTop="true" |
| 79 | android:layout_above="@id/gestures_actions" |
| 80 | |
| 81 | android:background="@drawable/gestures_background" |
| 82 | |
| 83 | android:gestureStrokeType="multiple" /> |
| 84 | |
| 85 | <ImageButton |
| 86 | style="@style/PlusButton" |
| 87 | |
| 88 | android:id="@+id/gestures_add" |
| 89 | android:layout_width="wrap_content" |
| 90 | android:layout_height="wrap_content" |
| 91 | android:layout_alignParentRight="true" |
| 92 | android:layout_alignTop="@id/gestures_actions" |
| 93 | android:layout_marginRight="10dip" |
| 94 | android:layout_marginTop="-22dip" /> |
| 95 | |
| 96 | </com.android.launcher.GesturesPanel> |