appwidget.xml revision c81d17c2bfb25a7de75e3a4c886fb5b932dc47fb
1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2009 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:clickable="true" 21 android:focusable="true" 22 android:orientation="vertical" > 23 24 <!-- Header --> 25 26 <LinearLayout 27 android:id="@+id/header" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:background="@drawable/appwidget_header_selector" 31 android:gravity="center_vertical|left" 32 android:minHeight="48dip" 33 android:paddingLeft="5dip" 34 android:paddingRight="2dip" > 35 36 <ImageView 37 android:layout_width="32dip" 38 android:layout_height="32dip" 39 android:scaleType="centerInside" 40 android:src="@mipmap/ic_launcher_calendar" /> 41 42 <LinearLayout 43 android:layout_width="0dip" 44 android:layout_height="wrap_content" 45 android:orientation="vertical" 46 android:layout_weight="1" 47 android:paddingLeft="8dip" > 48 49 <TextView 50 android:id="@+id/day_of_week" 51 style="@style/WidgetDayOfWeekStyle" 52 android:shadowColor="#0dffffff" 53 android:shadowRadius="3" 54 android:textColor="@color/appwidget_week" /> 55 56 <TextView 57 android:id="@+id/date" 58 style="@style/WidgetDateStyle" 59 android:textColor="@color/appwidget_month" /> 60 </LinearLayout> 61 </LinearLayout> 62 63 <!-- Event list --> 64 <ListView 65 android:id="@+id/events_list" 66 android:layout_width="match_parent" 67 android:layout_height="0dip" 68 android:layout_marginLeft="4dip" 69 android:layout_marginRight="4dip" 70 android:layout_weight="1" 71 android:background="@drawable/cal_widget_bg" 72 android:cacheColorHint="@null" 73 android:divider="@null" 74 android:dividerHeight="3dip" 75 android:listSelector="@android:color/transparent" > 76 </ListView> 77 78</LinearLayout>