Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 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 | --> |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 16 | <com.android.launcher3.Cling |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 18 | xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" |
Romain Guy | e34a213 | 2012-10-17 12:04:05 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 21 | launcher:drawIdentifier="workspace_portrait"> |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 22 | <FrameLayout |
Winson Chung | af40f20 | 2013-09-18 18:26:31 -0700 | [diff] [blame] | 23 | android:id="@+id/content" |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 24 | android:layout_width="match_parent" |
Winson Chung | 3a6e7f3 | 2013-10-09 15:50:52 -0700 | [diff] [blame] | 25 | android:layout_height="match_parent"> |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 26 | <LinearLayout |
| 27 | android:layout_width="match_parent" |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 28 | android:layout_height="wrap_content" |
Winson Chung | 45cab39 | 2013-10-02 17:45:32 -0700 | [diff] [blame] | 29 | android:layout_gravity="top" |
Winson Chung | 3a6e7f3 | 2013-10-09 15:50:52 -0700 | [diff] [blame] | 30 | android:layout_marginStart="25dp" |
| 31 | android:layout_marginEnd="25dp" |
| 32 | android:layout_marginTop="30dp" |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 33 | android:orientation="vertical"> |
Winson Chung | af40f20 | 2013-09-18 18:26:31 -0700 | [diff] [blame] | 34 | <LinearLayout |
| 35 | android:paddingLeft="20dp" |
| 36 | android:paddingRight="20dp" |
| 37 | android:paddingTop="20dp" |
| 38 | android:paddingBottom="20dp" |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="wrap_content" |
Winson Chung | af40f20 | 2013-09-18 18:26:31 -0700 | [diff] [blame] | 41 | android:orientation="vertical" |
| 42 | android:background="@drawable/cling"> |
| 43 | <TextView |
| 44 | style="@style/ClingTitleText" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:text="@string/workspace_cling_title" /> |
| 48 | <TextView |
| 49 | style="@style/ClingText" |
| 50 | android:layout_width="match_parent" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:text="@string/workspace_cling_move_item" /> |
| 53 | </LinearLayout> |
Winson Chung | 3a6e7f3 | 2013-10-09 15:50:52 -0700 | [diff] [blame] | 54 | <ImageView |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:layout_gravity="center_horizontal" |
| 58 | android:src="@drawable/cling_arrow_down" /> |
| 59 | </LinearLayout> |
| 60 | |
| 61 | <LinearLayout |
| 62 | android:id="@+id/focused_hotseat_app_bubble" |
| 63 | android:layout_width="wrap_content" |
| 64 | android:layout_height="wrap_content" |
Winson Chung | f7e11e9 | 2013-10-10 16:28:52 -0700 | [diff] [blame^] | 65 | android:layout_gravity="bottom|right" |
| 66 | android:layout_marginRight="25dp" |
| 67 | android:layout_marginBottom="90dp" |
Winson Chung | 3a6e7f3 | 2013-10-09 15:50:52 -0700 | [diff] [blame] | 68 | android:orientation="vertical" |
| 69 | android:visibility="gone"> |
| 70 | <LinearLayout |
| 71 | android:paddingLeft="20dp" |
| 72 | android:paddingRight="20dp" |
| 73 | android:paddingTop="20dp" |
| 74 | android:paddingBottom="20dp" |
| 75 | android:layout_width="240dp" |
| 76 | android:layout_height="wrap_content" |
| 77 | android:orientation="vertical" |
| 78 | android:background="@drawable/cling"> |
| 79 | <TextView |
| 80 | android:id="@+id/focused_hotseat_app_title" |
| 81 | style="@style/ClingTitleText" |
| 82 | android:layout_width="wrap_content" |
| 83 | android:layout_height="wrap_content" /> |
| 84 | <TextView |
| 85 | android:id="@+id/focused_hotseat_app_description" |
| 86 | style="@style/ClingText" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="wrap_content" /> |
| 89 | </LinearLayout> |
| 90 | <ImageView |
| 91 | android:layout_width="wrap_content" |
| 92 | android:layout_height="wrap_content" |
Winson Chung | f7e11e9 | 2013-10-10 16:28:52 -0700 | [diff] [blame^] | 93 | android:layout_gravity="right" |
| 94 | android:layout_marginRight="80dp" |
Winson Chung | 3a6e7f3 | 2013-10-09 15:50:52 -0700 | [diff] [blame] | 95 | android:src="@drawable/cling_arrow_down" /> |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 96 | </LinearLayout> |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 97 | </FrameLayout> |
Winson Chung | 3a6e7f3 | 2013-10-09 15:50:52 -0700 | [diff] [blame] | 98 | |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 99 | <Button |
| 100 | style="@style/ClingButton" |
Romain Guy | e34a213 | 2012-10-17 12:04:05 -0700 | [diff] [blame] | 101 | android:layout_width="wrap_content" |
| 102 | android:layout_height="wrap_content" |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 103 | android:layout_marginBottom="15dp" |
Winson Chung | f7e11e9 | 2013-10-10 16:28:52 -0700 | [diff] [blame^] | 104 | android:layout_marginLeft="20dp" |
| 105 | android:layout_gravity="bottom|left" |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 106 | android:onClick="dismissWorkspaceCling" /> |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 107 | </com.android.launcher3.Cling> |