blob: e707ef77450ca5ddc1952cfd2630edddf89f74ef [file] [log] [blame]
Winson Chung35d4a252011-08-11 15:12:11 -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
28 android:background="@drawable/focusable_view_bg"
29 android:focusable="true">
30
31 <LinearLayout
32 android:layout_width="wrap_content"
33 android:layout_height="wrap_content"
34 android:layout_marginBottom="4dp"
Peter Ng8db70002011-10-25 15:40:08 -070035 android:orientation="vertical">
Winson Chung35d4a252011-08-11 15:12:11 -070036 <!-- 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"
41 android:layout_weight="0"
42 android:gravity="left|bottom"
43 android:singleLine="true"
44 android:ellipsize="marquee"
45 android:fadingEdge="horizontal"
46
47 android:textColor="#FFBBBBBB"
48 android:textSize="14sp"
49 android:shadowColor="#FF000000"
50 android:shadowDx="0.0"
51 android:shadowDy="1.0"
52 android:shadowRadius="1.0" />
53
54 <!-- The original dimensions of the widget (can't be the same text as above due to different
55 style. -->
Peter Ng8db70002011-10-25 15:40:08 -070056 <TextView
Winson Chung35d4a252011-08-11 15:12:11 -070057 android:id="@+id/widget_dims"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_weight="0"
61 android:gravity="left|bottom"
62
63 android:textColor="#FF999999"
64 android:textSize="12sp"
65 android:shadowColor="#99000000"
66 android:shadowDx="0.0"
67 android:shadowDy="1.0"
68 android:shadowRadius="1.0" />
69 </LinearLayout>
70
71 <!-- The icon of the widget. -->
72 <ImageView
73 android:id="@+id/widget_preview"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
76 android:layout_weight="1"
77 android:adjustViewBounds="true"
78 android:scaleType="fitStart" />
79</com.android.launcher2.PagedViewWidget>