blob: f2d234266249080499a6ab1bbcfe67865ab8d12e [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-->
Daniel Sandler325dc232013-06-05 22:57:57 -040016<com.android.launcher3.PagedViewWidget
Winson Chung4b576be2011-04-27 17:40:20 -070017 xmlns:android="http://schemas.android.com/apk/res/android"
Daniel Sandler325dc232013-06-05 22:57:57 -040018 xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
Winson Chung4b576be2011-04-27 17:40:20 -070019
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. -->
Daniel Sandler325dc232013-06-05 22:57:57 -040029 <com.android.launcher3.PagedViewWidgetImageView
Michael Jurkadac85912012-05-18 15:04:49 -070030 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"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080035 android:paddingStart="@dimen/app_widget_preview_padding_left"
36 android:paddingEnd="@dimen/app_widget_preview_padding_right"
Michael Jurkadac85912012-05-18 15:04:49 -070037 android:scaleType="matrix"
Winson Chung2d75f122013-09-23 16:53:31 -070038 android:background="@drawable/screenpanel" />
Winson Chungfd3385f2011-06-15 19:51:24 -070039 <LinearLayout
Winson Chung35d4a252011-08-11 15:12:11 -070040 android:layout_width="match_parent"
Winson Chungfd3385f2011-06-15 19:51:24 -070041 android:layout_height="wrap_content"
Michael Jurkadac85912012-05-18 15:04:49 -070042 android:layout_marginTop="@dimen/app_widget_preview_label_margin_top"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080043 android:layout_marginStart="@dimen/app_widget_preview_label_margin_left"
44 android:layout_marginEnd="@dimen/app_widget_preview_label_margin_right"
Peter Ng8db70002011-10-25 15:40:08 -070045 android:orientation="horizontal">
Winson Chungfd3385f2011-06-15 19:51:24 -070046 <!-- The name of the widget. -->
47 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
48 android:id="@+id/widget_name"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
Winson Chung35d4a252011-08-11 15:12:11 -070051 android:layout_weight="1"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080052 android:gravity="start"
Winson Chungd2945262011-06-24 15:22:14 -070053 android:singleLine="true"
54 android:ellipsize="marquee"
55 android:fadingEdge="horizontal"
Winson Chungfd3385f2011-06-15 19:51:24 -070056
Winson Chung5fc72b32011-10-11 17:53:58 -070057 android:textColor="#FFFFFFFF"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080058 android:textSize="13sp"
Winson Chung2d75f122013-09-23 16:53:31 -070059 android:textAlignment="viewStart"
60 android:fontFamily="sans-serif-condensed"
61 android:shadowRadius="2.0"
62 android:shadowColor="#B0000000" />
Winson Chungfd3385f2011-06-15 19:51:24 -070063
64 <!-- The original dimensions of the widget (can't be the same text as above due to different
65 style. -->
66 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
67 android:id="@+id/widget_dims"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
Winson Chung5fc72b32011-10-11 17:53:58 -070070 android:layout_gravity="center"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080071 android:layout_marginStart="5dp"
Winson Chungfd3385f2011-06-15 19:51:24 -070072 android:layout_weight="0"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080073 android:gravity="start"
Winson Chungfd3385f2011-06-15 19:51:24 -070074
Winson Chung2d75f122013-09-23 16:53:31 -070075 android:textColor="#FFAAAAAA"
76 android:textSize="12sp"
77 android:fontFamily="sans-serif-condensed"
78 android:shadowRadius="2.0"
79 android:shadowColor="#B0000000" />
Winson Chungfd3385f2011-06-15 19:51:24 -070080 </LinearLayout>
81
Michael Jurkadac85912012-05-18 15:04:49 -070082
Daniel Sandler325dc232013-06-05 22:57:57 -040083</com.android.launcher3.PagedViewWidget>