blob: 6ba65c8117d0ede9ab8eb805ea49269ddf2c7a4e [file] [log] [blame]
Winson Chung4b576be2011-04-27 17:40:20 -07001<?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 Chung4e6a9762011-05-09 11:56:34 -070028 android:background="@drawable/focusable_view_bg"
Winson Chung4b576be2011-04-27 17:40:20 -070029 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"
37 android:adjustViewBounds="true"
38 android:scaleType="fitStart" />
39
40 <!-- The name of the widget. -->
41 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
42 android:id="@+id/widget_name"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:layout_weight="0"
46 android:gravity="left|bottom"
47
48 android:textColor="#FFFFFFFF"
49 android:textSize="14sp"
50 android:shadowColor="#FF000000"
51 android:shadowDx="0.0"
52 android:shadowDy="1.0"
53 android:shadowRadius="1.0"
54
55 android:maxLines="2"
56 android:fadingEdge="horizontal" />
57
58 <!-- The original dimensions of the widget (can't be the same text as above due to different
59 style. -->
60 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
61 android:id="@+id/widget_dims"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_weight="0"
65 android:gravity="left|bottom"
66
67 android:textColor="#FF999999"
68 android:textSize="14sp"
69 android:shadowColor="#99000000"
70 android:shadowDx="0.0"
71 android:shadowDy="1.0"
72 android:shadowRadius="1.0" />
73</com.android.launcher2.PagedViewWidget>