diff options
author | Mason Tang <masontang@google.com> | 2010-08-24 15:57:00 -0700 |
---|---|---|
committer | Mason Tang <masontang@google.com> | 2010-08-25 16:36:18 -0700 |
commit | 3ea333d41c04fd5f3a5d45f540c17894874429e8 (patch) | |
tree | b9d425fab0d2b3bfee04c53de5c87b66ff1c168c /res/layout/appwidget_day.xml | |
parent | 09a1d74e2c04ce13da972319a26a92257c758415 (diff) | |
download | android_packages_apps_Calendar-3ea333d41c04fd5f3a5d45f540c17894874429e8.tar.gz android_packages_apps_Calendar-3ea333d41c04fd5f3a5d45f540c17894874429e8.tar.bz2 android_packages_apps_Calendar-3ea333d41c04fd5f3a5d45f540c17894874429e8.zip |
Added day separators in the widget
- Also substantially refactored the widget service
- Moved much of the string logic into CalendarAppWidgetModel
- Changed the behavior so we do everything in one pass over the cursor and an
additional de-bucketing pass after
- Added a hard limit to the query for maximum events to return
- TODO write unit tests for new behavior
Change-Id: I2ddc2951f9b626e093f02dd365a70f56681eb931
Diffstat (limited to 'res/layout/appwidget_day.xml')
-rw-r--r-- | res/layout/appwidget_day.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/res/layout/appwidget_day.xml b/res/layout/appwidget_day.xml new file mode 100644 index 00000000..625212a3 --- /dev/null +++ b/res/layout/appwidget_day.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/appwidget_date" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:addStatesFromChildren="true" + android:focusableInTouchMode="false"> + + <TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/date" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:background="@color/agenda_day_bar_color" + android:padding="4dip" + android:textStyle="bold" + android:textColor="@color/appwidget_title" + /> + +</LinearLayout>
\ No newline at end of file |