2011-04-28 00:40:20 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-04-09 02:01:34 +00:00
|
|
|
<!-- Copyright (C) 2015 The Android Open Source Project
|
2011-04-28 00:40:20 +00:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2015-04-09 02:01:34 +00:00
|
|
|
<com.android.launcher3.widget.WidgetCell
|
2011-04-28 00:40:20 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2014-11-03 19:39:27 +00:00
|
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
2011-04-28 00:40:20 +00:00
|
|
|
|
2015-04-09 02:01:34 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2011-04-28 00:40:20 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical"
|
2011-05-09 18:56:34 +00:00
|
|
|
android:background="@drawable/focusable_view_bg"
|
2011-04-28 00:40:20 +00:00
|
|
|
android:focusable="true">
|
|
|
|
|
2011-06-16 02:51:24 +00:00
|
|
|
<LinearLayout
|
2011-08-11 22:12:11 +00:00
|
|
|
android:layout_width="match_parent"
|
2011-06-16 02:51:24 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-04-09 02:01:34 +00:00
|
|
|
android:paddingTop="@dimen/widget_preview_label_vertical_padding"
|
|
|
|
android:paddingBottom="@dimen/widget_preview_label_vertical_padding"
|
|
|
|
android:paddingLeft="@dimen/widget_preview_label_horizontal_padding"
|
|
|
|
android:paddingRight="@dimen/widget_preview_label_horizontal_padding"
|
2011-10-25 22:40:08 +00:00
|
|
|
android:orientation="horizontal">
|
2015-04-09 02:01:34 +00:00
|
|
|
|
2011-06-16 02:51:24 +00:00
|
|
|
<!-- The name of the widget. -->
|
2014-11-03 19:39:27 +00:00
|
|
|
<TextView
|
2011-06-16 02:51:24 +00:00
|
|
|
android:id="@+id/widget_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2011-08-11 22:12:11 +00:00
|
|
|
android:layout_weight="1"
|
2012-12-19 00:25:49 +00:00
|
|
|
android:gravity="start"
|
2011-06-24 22:22:14 +00:00
|
|
|
android:singleLine="true"
|
2015-04-09 23:54:31 +00:00
|
|
|
android:ellipsize="end"
|
2011-06-24 22:22:14 +00:00
|
|
|
android:fadingEdge="horizontal"
|
2011-06-16 02:51:24 +00:00
|
|
|
|
2011-10-12 00:53:58 +00:00
|
|
|
android:textColor="#FFFFFFFF"
|
2014-08-11 01:30:55 +00:00
|
|
|
android:textSize="12sp"
|
2013-09-23 23:53:31 +00:00
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:fontFamily="sans-serif-condensed"
|
|
|
|
android:shadowRadius="2.0"
|
|
|
|
android:shadowColor="#B0000000" />
|
2011-06-16 02:51:24 +00:00
|
|
|
|
|
|
|
<!-- The original dimensions of the widget (can't be the same text as above due to different
|
|
|
|
style. -->
|
2014-11-03 19:39:27 +00:00
|
|
|
<TextView
|
2011-06-16 02:51:24 +00:00
|
|
|
android:id="@+id/widget_dims"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2012-12-19 00:25:49 +00:00
|
|
|
android:layout_marginStart="5dp"
|
2015-04-09 02:01:34 +00:00
|
|
|
android:layout_marginLeft="5dp"
|
2011-06-16 02:51:24 +00:00
|
|
|
android:layout_weight="0"
|
2012-12-19 00:25:49 +00:00
|
|
|
android:gravity="start"
|
2011-06-16 02:51:24 +00:00
|
|
|
|
2014-08-11 01:30:55 +00:00
|
|
|
android:textColor="#FFFFFFFF"
|
2013-09-23 23:53:31 +00:00
|
|
|
android:textSize="12sp"
|
|
|
|
android:fontFamily="sans-serif-condensed"
|
|
|
|
android:shadowRadius="2.0"
|
|
|
|
android:shadowColor="#B0000000" />
|
2011-06-16 02:51:24 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2015-04-09 02:01:34 +00:00
|
|
|
<!-- The image of the widget. -->
|
|
|
|
<com.android.launcher3.widget.WidgetImageView
|
|
|
|
android:id="@+id/widget_preview"
|
|
|
|
style="@style/WidgetImageView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingTop="@dimen/widget_preview_padding_top"
|
|
|
|
android:paddingEnd="@dimen/widget_preview_padding_right"
|
|
|
|
android:paddingRight="@dimen/widget_preview_padding_right"
|
|
|
|
android:scaleType="matrix" />
|
2012-05-18 22:04:49 +00:00
|
|
|
|
2015-04-09 02:01:34 +00:00
|
|
|
</com.android.launcher3.widget.WidgetCell>
|