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" |
Sunny Goyal | b9f261f | 2014-11-03 11:39:27 -0800 | [diff] [blame] | 18 | xmlns:launcher="http://schemas.android.com/apk/res-auto" |
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 | |
Adam Cohen | 4e243a2 | 2014-08-10 18:30:55 -0700 | [diff] [blame] | 28 | <LinearLayout |
| 29 | android:orientation="horizontal" |
Michael Jurka | dac8591 | 2012-05-18 15:04:49 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
Adam Cohen | 4e243a2 | 2014-08-10 18:30:55 -0700 | [diff] [blame] | 32 | android:layout_weight="1"> |
| 33 | <FrameLayout |
| 34 | android:id="@+id/left_border" |
| 35 | android:layout_width="1dp" |
| 36 | android:layout_height="match_parent" |
| 37 | android:background="@color/widget_text_panel" |
| 38 | android:visibility="gone" /> |
| 39 | |
| 40 | <!-- The preview of the widget or shortcut. --> |
| 41 | <com.android.launcher3.PagedViewWidgetImageView |
| 42 | android:id="@+id/widget_preview" |
| 43 | style="@style/PagedViewWidgetImageView" |
| 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="match_parent" |
| 46 | android:layout_weight="1" |
| 47 | android:paddingTop="@dimen/app_widget_preview_padding_top" |
| 48 | android:paddingEnd="@dimen/app_widget_preview_padding_right" |
| 49 | android:paddingRight="@dimen/app_widget_preview_padding_right" |
| 50 | android:scaleType="matrix" /> |
| 51 | <FrameLayout |
| 52 | android:id="@+id/right_border" |
| 53 | android:layout_width="1dp" |
| 54 | android:layout_height="match_parent" |
| 55 | android:background="@color/widget_text_panel" |
| 56 | android:visibility="gone" /> |
| 57 | </LinearLayout> |
| 58 | |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 59 | <LinearLayout |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 60 | android:layout_width="match_parent" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 61 | android:layout_height="wrap_content" |
Adam Cohen | 4e243a2 | 2014-08-10 18:30:55 -0700 | [diff] [blame] | 62 | android:paddingTop="@dimen/app_widget_preview_label_vertical_padding" |
| 63 | android:paddingBottom="@dimen/app_widget_preview_label_vertical_padding" |
| 64 | android:paddingLeft="@dimen/app_widget_preview_label_horizontal_padding" |
| 65 | android:paddingRight="@dimen/app_widget_preview_label_horizontal_padding" |
| 66 | android:background="@color/widget_text_panel" |
Peter Ng | 8db7000 | 2011-10-25 15:40:08 -0700 | [diff] [blame] | 67 | android:orientation="horizontal"> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 68 | <!-- The name of the widget. --> |
Sunny Goyal | b9f261f | 2014-11-03 11:39:27 -0800 | [diff] [blame] | 69 | <TextView |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 70 | android:id="@+id/widget_name" |
| 71 | android:layout_width="wrap_content" |
| 72 | android:layout_height="wrap_content" |
Winson Chung | 35d4a25 | 2011-08-11 15:12:11 -0700 | [diff] [blame] | 73 | android:layout_weight="1" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 74 | android:gravity="start" |
Winson Chung | d294526 | 2011-06-24 15:22:14 -0700 | [diff] [blame] | 75 | android:singleLine="true" |
| 76 | android:ellipsize="marquee" |
| 77 | android:fadingEdge="horizontal" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 78 | |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 79 | android:textColor="#FFFFFFFF" |
Adam Cohen | 4e243a2 | 2014-08-10 18:30:55 -0700 | [diff] [blame] | 80 | android:textSize="12sp" |
Winson Chung | 2d75f12 | 2013-09-23 16:53:31 -0700 | [diff] [blame] | 81 | android:textAlignment="viewStart" |
| 82 | android:fontFamily="sans-serif-condensed" |
| 83 | android:shadowRadius="2.0" |
| 84 | android:shadowColor="#B0000000" /> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 85 | |
| 86 | <!-- The original dimensions of the widget (can't be the same text as above due to different |
| 87 | style. --> |
Sunny Goyal | b9f261f | 2014-11-03 11:39:27 -0800 | [diff] [blame] | 88 | <TextView |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 89 | android:id="@+id/widget_dims" |
| 90 | android:layout_width="wrap_content" |
| 91 | android:layout_height="wrap_content" |
Winson Chung | 5fc72b3 | 2011-10-11 17:53:58 -0700 | [diff] [blame] | 92 | android:layout_gravity="center" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 93 | android:layout_marginStart="5dp" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 94 | android:layout_weight="0" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 95 | android:gravity="start" |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 96 | |
Adam Cohen | 4e243a2 | 2014-08-10 18:30:55 -0700 | [diff] [blame] | 97 | android:textColor="#FFFFFFFF" |
Winson Chung | 2d75f12 | 2013-09-23 16:53:31 -0700 | [diff] [blame] | 98 | android:textSize="12sp" |
| 99 | android:fontFamily="sans-serif-condensed" |
| 100 | android:shadowRadius="2.0" |
| 101 | android:shadowColor="#B0000000" /> |
Winson Chung | fd3385f | 2011-06-15 19:51:24 -0700 | [diff] [blame] | 102 | </LinearLayout> |
| 103 | |
Michael Jurka | dac8591 | 2012-05-18 15:04:49 -0700 | [diff] [blame] | 104 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 105 | </com.android.launcher3.PagedViewWidget> |