Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 1 | <?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 Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 16 | <com.android.launcher3.PagedViewWidget |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 18 | xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 19 | |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
| 22 | android:layout_weight="1" |
| 23 | android:orientation="vertical" |
| 24 | |
Winson Chung | 4e6a976 | 2011-05-09 11:56:34 -0700 | [diff] [blame] | 25 | android:background="@drawable/focusable_view_bg" |
Winson Chung | 4b576be | 2011-04-27 17:40:20 -0700 | [diff] [blame] | 26 | android:focusable="true"> |
| 27 | |
Michael Jurka | dac8591 | 2012-05-18 15:04:49 -0700 | [diff] [blame] | 28 | <!-- The preview of the widget or shortcut. --> |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 29 | <com.android.launcher3.PagedViewWidgetImageView |
Michael Jurka | dac8591 | 2012-05-18 15:04:49 -0700 | [diff] [blame] | 30 | android:id="@+id/widget_preview" |
| 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="wrap_content" |
| 33 | android:layout_weight="1" |
| 34 | android:paddingTop="@dimen/app_widget_preview_padding_top" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 35 | android:paddingStart="@dimen/app_widget_preview_padding_left" |
| 36 | android:paddingEnd="@dimen/app_widget_preview_padding_right" |
Michael Jurka | dac8591 | 2012-05-18 15:04:49 -0700 | [diff] [blame] | 37 | android:scaleType="matrix" |
Winson Chung | 2d75f12 | 2013-09-23 16:53:31 -0700 | [diff] [blame] | 38 | android:background="@drawable/screenpanel" /> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 39 | <LinearLayout |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 40 | android:layout_width="match_parent" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
Michael Jurka | dac8591 | 2012-05-18 15:04:49 -0700 | [diff] [blame] | 42 | android:layout_marginTop="@dimen/app_widget_preview_label_margin_top" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 43 | android:layout_marginStart="@dimen/app_widget_preview_label_margin_left" |
| 44 | android:layout_marginEnd="@dimen/app_widget_preview_label_margin_right" |
Peter Ng | 8db7000 | 2011-10-25 15:40:08 -0700 | [diff] [blame] | 45 | android:orientation="horizontal"> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 46 | <!-- The name of the widget. --> |
| 47 | <TextView xmlns:android="http://schemas.android.com/apk/res/android" |
| 48 | android:id="@+id/widget_name" |
| 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="wrap_content" |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 51 | android:layout_weight="1" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 52 | android:gravity="start" |
Winson Chung | d294526 | 2011-06-24 15:22:14 -0700 | [diff] [blame] | 53 | android:singleLine="true" |
| 54 | android:ellipsize="marquee" |
| 55 | android:fadingEdge="horizontal" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 56 | |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 57 | android:textColor="#FFFFFFFF" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 58 | android:textSize="13sp" |
Winson Chung | 2d75f12 | 2013-09-23 16:53:31 -0700 | [diff] [blame] | 59 | android:textAlignment="viewStart" |
| 60 | android:fontFamily="sans-serif-condensed" |
| 61 | android:shadowRadius="2.0" |
| 62 | android:shadowColor="#B0000000" /> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 63 | |
| 64 | <!-- The original dimensions of the widget (can't be the same text as above due to different |
| 65 | style. --> |
| 66 | <TextView xmlns:android="http://schemas.android.com/apk/res/android" |
| 67 | android:id="@+id/widget_dims" |
| 68 | android:layout_width="wrap_content" |
| 69 | android:layout_height="wrap_content" |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 70 | android:layout_gravity="center" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 71 | android:layout_marginStart="5dp" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 72 | android:layout_weight="0" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 73 | android:gravity="start" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 74 | |
Winson Chung | 2d75f12 | 2013-09-23 16:53:31 -0700 | [diff] [blame] | 75 | android:textColor="#FFAAAAAA" |
| 76 | android:textSize="12sp" |
| 77 | android:fontFamily="sans-serif-condensed" |
| 78 | android:shadowRadius="2.0" |
| 79 | android:shadowColor="#B0000000" /> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 80 | </LinearLayout> |
| 81 | |
Michael Jurka | dac8591 | 2012-05-18 15:04:49 -0700 | [diff] [blame] | 82 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 83 | </com.android.launcher3.PagedViewWidget> |