blob: abb7508b5b9ff56c05d01cd80d5ea3cf401b0630 [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
Winson Chung4e6a9762011-05-09 11:56:34 -070025 android:background="@drawable/focusable_view_bg"
Winson Chung4b576be2011-04-27 17:40:20 -070026 android:focusable="true">
27
Michael Jurkadac85912012-05-18 15:04:49 -070028 <!-- The preview of the widget or shortcut. -->
29 <com.android.launcher2.PagedViewWidgetImageView
30 android:id="@+id/widget_preview"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:layout_weight="1"
34 android:paddingTop="@dimen/app_widget_preview_padding_top"
35 android:paddingLeft="@dimen/app_widget_preview_padding_left"
36 android:paddingRight="@dimen/app_widget_preview_padding_right"
37 android:scaleType="matrix"
38 android:background="@drawable/widget_container_holo" />
39
Winson Chungfd3385f2011-06-15 19:51:24 -070040 <LinearLayout
Winson Chung35d4a252011-08-11 15:12:11 -070041 android:layout_width="match_parent"
Winson Chungfd3385f2011-06-15 19:51:24 -070042 android:layout_height="wrap_content"
Michael Jurkadac85912012-05-18 15:04:49 -070043 android:layout_marginTop="@dimen/app_widget_preview_label_margin_top"
44 android:layout_marginLeft="@dimen/app_widget_preview_label_margin_left"
45 android:layout_marginRight="@dimen/app_widget_preview_label_margin_right"
Peter Ng8db70002011-10-25 15:40:08 -070046 android:orientation="horizontal">
Winson Chungfd3385f2011-06-15 19:51:24 -070047 <!-- The name of the widget. -->
48 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
49 android:id="@+id/widget_name"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
Winson Chung35d4a252011-08-11 15:12:11 -070052 android:layout_weight="1"
53 android:gravity="left"
Winson Chungd2945262011-06-24 15:22:14 -070054 android:singleLine="true"
55 android:ellipsize="marquee"
56 android:fadingEdge="horizontal"
Winson Chungfd3385f2011-06-15 19:51:24 -070057
Winson Chung5fc72b32011-10-11 17:53:58 -070058 android:textColor="#FFFFFFFF"
59 android:textSize="13sp" />
Winson Chungfd3385f2011-06-15 19:51:24 -070060
61 <!-- The original dimensions of the widget (can't be the same text as above due to different
62 style. -->
63 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
64 android:id="@+id/widget_dims"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
Winson Chung5fc72b32011-10-11 17:53:58 -070067 android:layout_gravity="center"
Winson Chung35d4a252011-08-11 15:12:11 -070068 android:layout_marginLeft="5dp"
Winson Chungfd3385f2011-06-15 19:51:24 -070069 android:layout_weight="0"
Winson Chung35d4a252011-08-11 15:12:11 -070070 android:gravity="left"
Winson Chungfd3385f2011-06-15 19:51:24 -070071
Winson Chung5fc72b32011-10-11 17:53:58 -070072 android:textColor="#FF555555"
73 android:textSize="12sp" />
Winson Chungfd3385f2011-06-15 19:51:24 -070074 </LinearLayout>
75
Michael Jurkadac85912012-05-18 15:04:49 -070076
Winson Chung4b576be2011-04-27 17:40:20 -070077</com.android.launcher2.PagedViewWidget>