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 | |
| 31 | <!-- The icon of the widget. --> |
| 32 | <ImageView |
| 33 | android:id="@+id/widget_preview" |
| 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="match_parent" |
| 36 | android:layout_weight="1" |
Winson Chung | 46af2e8 | 2011-05-09 16:00:53 -0700 | [diff] [blame] | 37 | android:paddingBottom="5dp" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 38 | android:adjustViewBounds="true" |
| 39 | android:scaleType="fitStart" /> |
| 40 | |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 41 | <!-- The divider image. --> |
| 42 | <ImageView |
| 43 | style="WidgetDivider" |
| 44 | android:id="@+id/divider" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:layout_weight="0" |
| 48 | android:paddingTop="10dp" |
| 49 | android:paddingBottom="10dp" |
| 50 | android:src="@drawable/widget_divider" /> |
| 51 | |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 52 | <!-- The name of the widget. --> |
| 53 | <TextView xmlns:android="http://schemas.android.com/apk/res/android" |
| 54 | android:id="@+id/widget_name" |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:layout_weight="0" |
| 58 | android:gravity="left|bottom" |
| 59 | |
| 60 | android:textColor="#FFFFFFFF" |
| 61 | android:textSize="14sp" |
| 62 | android:shadowColor="#FF000000" |
| 63 | android:shadowDx="0.0" |
| 64 | android:shadowDy="1.0" |
| 65 | android:shadowRadius="1.0" |
| 66 | |
| 67 | android:maxLines="2" |
| 68 | android:fadingEdge="horizontal" /> |
| 69 | |
| 70 | <!-- The original dimensions of the widget (can't be the same text as above due to different |
| 71 | style. --> |
| 72 | <TextView xmlns:android="http://schemas.android.com/apk/res/android" |
| 73 | android:id="@+id/widget_dims" |
| 74 | android:layout_width="wrap_content" |
| 75 | android:layout_height="wrap_content" |
| 76 | android:layout_weight="0" |
| 77 | android:gravity="left|bottom" |
| 78 | |
| 79 | android:textColor="#FF999999" |
| 80 | android:textSize="14sp" |
| 81 | android:shadowColor="#99000000" |
| 82 | android:shadowDx="0.0" |
| 83 | android:shadowDy="1.0" |
| 84 | android:shadowRadius="1.0" /> |
| 85 | </com.android.launcher2.PagedViewWidget> |