Winson Chung | 4b576be | 2011-04-27 17:40:20 -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 | --> |
| 16 | <com.android.launcher2.PagedViewWidget |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" |
| 19 | |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
| 22 | android:layout_weight="1" |
| 23 | android:orientation="vertical" |
| 24 | |
| 25 | launcher:blurColor="#FF6B8CF0" |
| 26 | launcher:outlineColor="#FF8CD2FF" |
| 27 | |
Winson Chung | 4e6a976 | 2011-05-09 11:56:34 -0700 | [diff] [blame] | 28 | android:background="@drawable/focusable_view_bg" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 29 | android:focusable="true"> |
| 30 | |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 31 | <LinearLayout |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 32 | android:layout_width="match_parent" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 33 | android:layout_height="wrap_content" |
| 34 | android:layout_marginBottom="4dp" |
Peter Ng | 8db7000 | 2011-10-25 15:40:08 -0700 | [diff] [blame] | 35 | android:orientation="horizontal"> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 36 | <!-- The name of the widget. --> |
| 37 | <TextView xmlns:android="http://schemas.android.com/apk/res/android" |
| 38 | android:id="@+id/widget_name" |
| 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="wrap_content" |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 41 | android:layout_weight="1" |
| 42 | android:gravity="left" |
Winson Chung | d294526 | 2011-06-24 15:22:14 -0700 | [diff] [blame] | 43 | android:singleLine="true" |
| 44 | android:ellipsize="marquee" |
| 45 | android:fadingEdge="horizontal" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 46 | |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 47 | android:textColor="#FFFFFFFF" |
| 48 | android:textSize="13sp" /> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 49 | |
| 50 | <!-- The original dimensions of the widget (can't be the same text as above due to different |
| 51 | style. --> |
| 52 | <TextView xmlns:android="http://schemas.android.com/apk/res/android" |
| 53 | android:id="@+id/widget_dims" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 56 | android:layout_gravity="center" |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 57 | android:layout_marginLeft="5dp" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 58 | android:layout_weight="0" |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 59 | android:gravity="left" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 60 | |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 61 | android:textColor="#FF555555" |
| 62 | android:textSize="12sp" /> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 63 | </LinearLayout> |
| 64 | |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 65 | <!-- The icon of the widget. --> |
| 66 | <ImageView |
| 67 | android:id="@+id/widget_preview" |
| 68 | android:layout_width="match_parent" |
Winson Chung | d294526 | 2011-06-24 15:22:14 -0700 | [diff] [blame] | 69 | android:layout_height="wrap_content" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 70 | android:layout_weight="1" |
Winson Chung | b5e74c8 | 2011-10-28 16:39:20 -0700 | [diff] [blame^] | 71 | android:paddingTop="@dimen/app_widget_preview_padding_top" |
| 72 | android:paddingLeft="@dimen/app_widget_preview_padding_left" |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 73 | android:scaleType="matrix" /> |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 74 | </com.android.launcher2.PagedViewWidget> |