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--> 16<com.android.launcher2.PagedViewWidget 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" 19 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:layout_weight="1" 23 android:orientation="vertical" 24 25 launcher:blurColor="#FF6B8CF0" 26 launcher:outlineColor="#FF8CD2FF" 27 28 android:background="@drawable/focusable_view_bg" 29 android:focusable="true"> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_marginBottom="4dp" 35 android:orientation="horizontal"> 36 <!-- The name of the widget. --> 37 <TextView xmlns:android="http://schemas.android.com/apk/res/android" 38 android:id="@+id/widget_name" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_weight="1" 42 android:gravity="left" 43 android:singleLine="true" 44 android:ellipsize="marquee" 45 android:fadingEdge="horizontal" 46 47 android:textColor="#FFFFFFFF" 48 android:textSize="13sp" /> 49 50 <!-- The original dimensions of the widget (can't be the same text as above due to different 51 style. --> 52 <TextView xmlns:android="http://schemas.android.com/apk/res/android" 53 android:id="@+id/widget_dims" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_gravity="center" 57 android:layout_marginLeft="5dp" 58 android:layout_weight="0" 59 android:gravity="left" 60 61 android:textColor="#FF555555" 62 android:textSize="12sp" /> 63 </LinearLayout> 64 65 <!-- The icon of the widget. --> 66 <ImageView 67 android:id="@+id/widget_preview" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:layout_weight="1" 71 android:padding="8dp" 72 android:scaleType="matrix" /> 73</com.android.launcher2.PagedViewWidget> 74