2011-04-27 17:40:20 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<!-- Copyright (C) 2011 The Android Open Source Project
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
-->
|
2013-06-05 22:57:57 -04:00
|
|
|
<com.android.launcher3.PagedViewWidget
|
2011-04-27 17:40:20 -07:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2013-06-05 22:57:57 -04:00
|
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
|
2011-04-27 17:40:20 -07:00
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
2011-05-09 11:56:34 -07:00
|
|
|
android:background="@drawable/focusable_view_bg"
|
2011-04-27 17:40:20 -07:00
|
|
|
android:focusable="true">
|
|
|
|
|
|
2012-05-18 15:04:49 -07:00
|
|
|
<!-- The preview of the widget or shortcut. -->
|
2013-06-05 22:57:57 -04:00
|
|
|
<com.android.launcher3.PagedViewWidgetImageView
|
2012-05-18 15:04:49 -07:00
|
|
|
android:id="@+id/widget_preview"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingTop="@dimen/app_widget_preview_padding_top"
|
2012-12-18 16:25:49 -08:00
|
|
|
android:paddingStart="@dimen/app_widget_preview_padding_left"
|
|
|
|
|
android:paddingEnd="@dimen/app_widget_preview_padding_right"
|
2012-05-18 15:04:49 -07:00
|
|
|
android:scaleType="matrix"
|
2013-09-23 16:53:31 -07:00
|
|
|
android:background="@drawable/screenpanel" />
|
2011-06-15 19:51:24 -07:00
|
|
|
<LinearLayout
|
2011-08-11 15:12:11 -07:00
|
|
|
android:layout_width="match_parent"
|
2011-06-15 19:51:24 -07:00
|
|
|
android:layout_height="wrap_content"
|
2012-05-18 15:04:49 -07:00
|
|
|
android:layout_marginTop="@dimen/app_widget_preview_label_margin_top"
|
2012-12-18 16:25:49 -08:00
|
|
|
android:layout_marginStart="@dimen/app_widget_preview_label_margin_left"
|
|
|
|
|
android:layout_marginEnd="@dimen/app_widget_preview_label_margin_right"
|
2011-10-25 15:40:08 -07:00
|
|
|
android:orientation="horizontal">
|
2011-06-15 19:51:24 -07:00
|
|
|
<!-- The name of the widget. -->
|
|
|
|
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
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"
|
2012-12-18 16:25:49 -08:00
|
|
|
android:gravity="start"
|
2011-06-24 15:22:14 -07:00
|
|
|
android:singleLine="true"
|
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
|
android:fadingEdge="horizontal"
|
2011-06-15 19:51:24 -07:00
|
|
|
|
2011-10-11 17:53:58 -07:00
|
|
|
android:textColor="#FFFFFFFF"
|
2012-12-18 16:25:49 -08:00
|
|
|
android:textSize="13sp"
|
2013-09-23 16:53:31 -07:00
|
|
|
android:textAlignment="viewStart"
|
|
|
|
|
android:fontFamily="sans-serif-condensed"
|
|
|
|
|
android:shadowRadius="2.0"
|
|
|
|
|
android:shadowColor="#B0000000" />
|
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. -->
|
|
|
|
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
android:id="@+id/widget_dims"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2011-10-11 17:53:58 -07:00
|
|
|
android:layout_gravity="center"
|
2012-12-18 16:25:49 -08:00
|
|
|
android:layout_marginStart="5dp"
|
2011-06-15 19:51:24 -07:00
|
|
|
android:layout_weight="0"
|
2012-12-18 16:25:49 -08:00
|
|
|
android:gravity="start"
|
2011-06-15 19:51:24 -07:00
|
|
|
|
2013-09-23 16:53:31 -07:00
|
|
|
android:textColor="#FFAAAAAA"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:fontFamily="sans-serif-condensed"
|
|
|
|
|
android:shadowRadius="2.0"
|
|
|
|
|
android:shadowColor="#B0000000" />
|
2011-06-15 19:51:24 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2012-05-18 15:04:49 -07:00
|
|
|
|
2013-06-05 22:57:57 -04:00
|
|
|
</com.android.launcher3.PagedViewWidget>
|