blob: a8344e3ff9cdac88fa17b7c16e14b099241050d3 [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"
Sunny Goyalb9f261f2014-11-03 11:39:27 -080018 xmlns:launcher="http://schemas.android.com/apk/res-auto"
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
Adam Cohen4e243a22014-08-10 18:30:55 -070028 <LinearLayout
29 android:orientation="horizontal"
Michael Jurkadac85912012-05-18 15:04:49 -070030 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
Adam Cohen4e243a22014-08-10 18:30:55 -070032 android:layout_weight="1">
33 <FrameLayout
34 android:id="@+id/left_border"
35 android:layout_width="1dp"
36 android:layout_height="match_parent"
37 android:background="@color/widget_text_panel"
38 android:visibility="gone" />
39
40 <!-- The preview of the widget or shortcut. -->
41 <com.android.launcher3.PagedViewWidgetImageView
42 android:id="@+id/widget_preview"
43 style="@style/PagedViewWidgetImageView"
44 android:layout_width="match_parent"
45 android:layout_height="match_parent"
46 android:layout_weight="1"
47 android:paddingTop="@dimen/app_widget_preview_padding_top"
48 android:paddingEnd="@dimen/app_widget_preview_padding_right"
49 android:paddingRight="@dimen/app_widget_preview_padding_right"
50 android:scaleType="matrix" />
51 <FrameLayout
52 android:id="@+id/right_border"
53 android:layout_width="1dp"
54 android:layout_height="match_parent"
55 android:background="@color/widget_text_panel"
56 android:visibility="gone" />
57 </LinearLayout>
58
Winson Chungfd3385f2011-06-15 19:51:24 -070059 <LinearLayout
Winson Chung35d4a252011-08-11 15:12:11 -070060 android:layout_width="match_parent"
Winson Chungfd3385f2011-06-15 19:51:24 -070061 android:layout_height="wrap_content"
Adam Cohen4e243a22014-08-10 18:30:55 -070062 android:paddingTop="@dimen/app_widget_preview_label_vertical_padding"
63 android:paddingBottom="@dimen/app_widget_preview_label_vertical_padding"
64 android:paddingLeft="@dimen/app_widget_preview_label_horizontal_padding"
65 android:paddingRight="@dimen/app_widget_preview_label_horizontal_padding"
66 android:background="@color/widget_text_panel"
Peter Ng8db70002011-10-25 15:40:08 -070067 android:orientation="horizontal">
Winson Chungfd3385f2011-06-15 19:51:24 -070068 <!-- The name of the widget. -->
Sunny Goyalb9f261f2014-11-03 11:39:27 -080069 <TextView
Winson Chungfd3385f2011-06-15 19:51:24 -070070 android:id="@+id/widget_name"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
Winson Chung35d4a252011-08-11 15:12:11 -070073 android:layout_weight="1"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080074 android:gravity="start"
Winson Chungd2945262011-06-24 15:22:14 -070075 android:singleLine="true"
76 android:ellipsize="marquee"
77 android:fadingEdge="horizontal"
Winson Chungfd3385f2011-06-15 19:51:24 -070078
Winson Chung5fc72b32011-10-11 17:53:58 -070079 android:textColor="#FFFFFFFF"
Adam Cohen4e243a22014-08-10 18:30:55 -070080 android:textSize="12sp"
Winson Chung2d75f122013-09-23 16:53:31 -070081 android:textAlignment="viewStart"
82 android:fontFamily="sans-serif-condensed"
83 android:shadowRadius="2.0"
84 android:shadowColor="#B0000000" />
Winson Chungfd3385f2011-06-15 19:51:24 -070085
86 <!-- The original dimensions of the widget (can't be the same text as above due to different
87 style. -->
Sunny Goyalb9f261f2014-11-03 11:39:27 -080088 <TextView
Winson Chungfd3385f2011-06-15 19:51:24 -070089 android:id="@+id/widget_dims"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
Winson Chung5fc72b32011-10-11 17:53:58 -070092 android:layout_gravity="center"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080093 android:layout_marginStart="5dp"
Winson Chungfd3385f2011-06-15 19:51:24 -070094 android:layout_weight="0"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080095 android:gravity="start"
Winson Chungfd3385f2011-06-15 19:51:24 -070096
Adam Cohen4e243a22014-08-10 18:30:55 -070097 android:textColor="#FFFFFFFF"
Winson Chung2d75f122013-09-23 16:53:31 -070098 android:textSize="12sp"
99 android:fontFamily="sans-serif-condensed"
100 android:shadowRadius="2.0"
101 android:shadowColor="#B0000000" />
Winson Chungfd3385f2011-06-15 19:51:24 -0700102 </LinearLayout>
103
Michael Jurkadac85912012-05-18 15:04:49 -0700104
Daniel Sandler325dc232013-06-05 22:57:57 -0400105</com.android.launcher3.PagedViewWidget>