blob: 64ddea1aea42f8e2c98a487fe7efe2603144e583 [file] [log] [blame]
Hyunyoung Song3f471442015-04-08 19:01:34 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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.launcher3.widget.WidgetCell
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 xmlns:launcher="http://schemas.android.com/apk/res-auto"
Hyunyoung Song4cea4c82015-04-17 19:02:30 -070019 android:layout_width="@dimen/widget_preview_container_width"
Hyunyoung Song3f471442015-04-08 19:01:34 -070020 android:layout_height="wrap_content"
21 android:layout_weight="1"
Hyunyoung Song475784a2015-04-22 13:59:20 -070022 android:layout_marginTop="@dimen/widget_preview_padding_top"
23 android:layout_marginLeft="8dp"
24 android:layout_marginBottom="8dp"
Hyunyoung Song3f471442015-04-08 19:01:34 -070025 android:orientation="vertical"
Hyunyoung Song475784a2015-04-22 13:59:20 -070026 android:background="@color/bubble_dark_background"
Hyunyoung Song3f471442015-04-08 19:01:34 -070027 android:focusable="true">
28
29 <LinearLayout
Hyunyoung Song4cea4c82015-04-17 19:02:30 -070030 android:layout_width="wrap_content"
Hyunyoung Song3f471442015-04-08 19:01:34 -070031 android:layout_height="wrap_content"
32 android:paddingTop="@dimen/widget_preview_label_vertical_padding"
33 android:paddingBottom="@dimen/widget_preview_label_vertical_padding"
34 android:paddingLeft="@dimen/widget_preview_label_horizontal_padding"
35 android:paddingRight="@dimen/widget_preview_label_horizontal_padding"
36 android:orientation="horizontal">
37
38 <!-- The name of the widget. -->
39 <TextView
40 android:id="@+id/widget_name"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:layout_weight="1"
44 android:gravity="start"
45 android:singleLine="true"
Hyunyoung Songa23dab92015-04-09 16:54:31 -070046 android:ellipsize="end"
Hyunyoung Song3f471442015-04-08 19:01:34 -070047 android:fadingEdge="horizontal"
48
49 android:textColor="#FFFFFFFF"
Hyunyoung Songb99ff3e2015-04-23 15:17:50 -070050 android:textSize="16sp"
Hyunyoung Song3f471442015-04-08 19:01:34 -070051 android:textAlignment="viewStart"
52 android:fontFamily="sans-serif-condensed"
53 android:shadowRadius="2.0"
54 android:shadowColor="#B0000000" />
55
56 <!-- The original dimensions of the widget (can't be the same text as above due to different
57 style. -->
58 <TextView
59 android:id="@+id/widget_dims"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
Hyunyoung Song3f471442015-04-08 19:01:34 -070062 android:layout_marginStart="5dp"
63 android:layout_marginLeft="5dp"
64 android:layout_weight="0"
65 android:gravity="start"
Hyunyoung Song3f471442015-04-08 19:01:34 -070066 android:textColor="#FFFFFFFF"
Hyunyoung Songb99ff3e2015-04-23 15:17:50 -070067 android:textSize="16sp"
Hyunyoung Song4cea4c82015-04-17 19:02:30 -070068 android:textAlignment="viewStart"
Hyunyoung Song3f471442015-04-08 19:01:34 -070069 android:fontFamily="sans-serif-condensed"
70 android:shadowRadius="2.0"
71 android:shadowColor="#B0000000" />
72 </LinearLayout>
73
74 <!-- The image of the widget. -->
75 <com.android.launcher3.widget.WidgetImageView
76 android:id="@+id/widget_preview"
77 style="@style/WidgetImageView"
Hyunyoung Song4cea4c82015-04-17 19:02:30 -070078 android:layout_width="match_parent"
Hyunyoung Song3f471442015-04-08 19:01:34 -070079 android:layout_height="wrap_content"
80 android:layout_weight="1"
Hyunyoung Song3f471442015-04-08 19:01:34 -070081 android:scaleType="matrix" />
82
83</com.android.launcher3.widget.WidgetCell>