2011-04-27 17:40:20 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-04-08 19:01:34 -07:00
|
|
|
<!-- Copyright (C) 2015 The Android Open Source Project
|
2011-04-27 17:40:20 -07: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-08 19:01:34 -07:00
|
|
|
<com.android.launcher3.widget.WidgetCell
|
2011-04-27 17:40:20 -07:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2014-11-03 11:39:27 -08:00
|
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
2015-05-12 15:36:20 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2011-04-27 17:40:20 -07:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical"
|
2015-05-11 14:55:07 -07:00
|
|
|
android:focusable="true"
|
2015-05-12 15:36:20 -07:00
|
|
|
android:background="@color/widgets_cell_color"
|
2015-05-11 14:55:07 -07:00
|
|
|
android:gravity="center_horizontal">
|
2011-04-27 17:40:20 -07:00
|
|
|
|
2011-06-15 19:51:24 -07:00
|
|
|
<LinearLayout
|
2015-04-17 19:02:30 -07:00
|
|
|
android:layout_width="wrap_content"
|
2011-06-15 19:51:24 -07:00
|
|
|
android:layout_height="wrap_content"
|
2015-04-08 19:01:34 -07: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 15:40:08 -07:00
|
|
|
android:orientation="horizontal">
|
2015-04-08 19:01:34 -07:00
|
|
|
|
2011-06-15 19:51:24 -07:00
|
|
|
<!-- The name of the widget. -->
|
2014-11-03 11:39:27 -08:00
|
|
|
<TextView
|
2011-06-15 19:51:24 -07:00
|
|
|
android:id="@+id/widget_name"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2011-08-11 15:12:11 -07:00
|
|
|
android:layout_weight="1"
|
2015-04-09 16:54:31 -07:00
|
|
|
android:ellipsize="end"
|
2011-06-24 15:22:14 -07:00
|
|
|
android:fadingEdge="horizontal"
|
2013-09-23 16:53:31 -07:00
|
|
|
android:fontFamily="sans-serif-condensed"
|
2015-05-15 17:01:14 -07:00
|
|
|
android:gravity="start"
|
|
|
|
|
android:shadowColor="#B0000000"
|
2013-09-23 16:53:31 -07:00
|
|
|
android:shadowRadius="2.0"
|
2015-05-15 17:01:14 -07:00
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="@color/widgets_view_item_text_color"
|
|
|
|
|
android:textSize="14sp" />
|
2011-06-15 19:51:24 -07:00
|
|
|
|
|
|
|
|
<!-- The original dimensions of the widget (can't be the same text as above due to different
|
|
|
|
|
style. -->
|
2014-11-03 11:39:27 -08:00
|
|
|
<TextView
|
2011-06-15 19:51:24 -07:00
|
|
|
android:id="@+id/widget_dims"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2012-12-18 16:25:49 -08:00
|
|
|
android:layout_marginStart="5dp"
|
2015-04-08 19:01:34 -07:00
|
|
|
android:layout_marginLeft="5dp"
|
2015-05-01 10:55:53 -07:00
|
|
|
android:textColor="@color/widgets_view_item_text_color"
|
2015-05-14 18:02:15 -07:00
|
|
|
android:textSize="14sp"
|
2013-09-23 16:53:31 -07:00
|
|
|
android:fontFamily="sans-serif-condensed"
|
|
|
|
|
android:shadowRadius="2.0"
|
|
|
|
|
android:shadowColor="#B0000000" />
|
2011-06-15 19:51:24 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2015-05-15 17:01:14 -07:00
|
|
|
<!-- The image of the widget. This view does not support padding. Any placement adjustment
|
|
|
|
|
should be done using margins. -->
|
2015-04-08 19:01:34 -07:00
|
|
|
<com.android.launcher3.widget.WidgetImageView
|
|
|
|
|
android:id="@+id/widget_preview"
|
2015-05-15 17:01:14 -07:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1" />
|
2015-05-12 15:36:20 -07:00
|
|
|
</com.android.launcher3.widget.WidgetCell>
|