blob: 7cc4177de1be2a3da3fa507b1a8d1f8c1ed81408 [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
Winson Chungfd3385f2011-06-15 19:51:24 -070031 <LinearLayout
Winson Chung35d4a252011-08-11 15:12:11 -070032 android:layout_width="match_parent"
Winson Chungfd3385f2011-06-15 19:51:24 -070033 android:layout_height="wrap_content"
34 android:layout_marginBottom="4dp"
Winson Chung35d4a252011-08-11 15:12:11 -070035 android:orientation="horizontal"
Winson Chungfd3385f2011-06-15 19:51:24 -070036 android:background="@drawable/widget_info_bg">
37 <!-- The name of the widget. -->
38 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
39 android:id="@+id/widget_name"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
Winson Chung35d4a252011-08-11 15:12:11 -070042 android:layout_weight="1"
43 android:gravity="left"
Winson Chungd2945262011-06-24 15:22:14 -070044 android:singleLine="true"
45 android:ellipsize="marquee"
46 android:fadingEdge="horizontal"
Winson Chungfd3385f2011-06-15 19:51:24 -070047
Winson Chung5fc72b32011-10-11 17:53:58 -070048 android:textColor="#FFFFFFFF"
49 android:textSize="13sp" />
Winson Chungfd3385f2011-06-15 19:51:24 -070050
51 <!-- The original dimensions of the widget (can't be the same text as above due to different
52 style. -->
53 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
54 android:id="@+id/widget_dims"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
Winson Chung5fc72b32011-10-11 17:53:58 -070057 android:layout_gravity="center"
Winson Chung35d4a252011-08-11 15:12:11 -070058 android:layout_marginLeft="5dp"
Winson Chungfd3385f2011-06-15 19:51:24 -070059 android:layout_weight="0"
Winson Chung35d4a252011-08-11 15:12:11 -070060 android:gravity="left"
Winson Chungfd3385f2011-06-15 19:51:24 -070061
Winson Chung5fc72b32011-10-11 17:53:58 -070062 android:textColor="#FF555555"
63 android:textSize="12sp" />
Winson Chungfd3385f2011-06-15 19:51:24 -070064 </LinearLayout>
65
Winson Chung4b576be2011-04-27 17:40:20 -070066 <!-- The icon of the widget. -->
67 <ImageView
68 android:id="@+id/widget_preview"
69 android:layout_width="match_parent"
Winson Chungd2945262011-06-24 15:22:14 -070070 android:layout_height="wrap_content"
Winson Chung4b576be2011-04-27 17:40:20 -070071 android:layout_weight="1"
Winson Chung5fc72b32011-10-11 17:53:58 -070072 android:padding="8dp"
73 android:scaleType="matrix" />
Winson Chung4b576be2011-04-27 17:40:20 -070074</com.android.launcher2.PagedViewWidget>