diff options
author | RoboErik <epastern@google.com> | 2011-07-12 18:01:03 -0700 |
---|---|---|
committer | RoboErik <epastern@google.com> | 2011-07-13 18:17:14 -0700 |
commit | 42dabd1e1e89b0d4af5afb776c6ecc53f6ae9fba (patch) | |
tree | e76c5503076d713dac7773728fc5c473f5234c5a /res/layout/widget_all_day_item.xml | |
parent | fd783a5324a764060658afe77ad93a5ecc455a73 (diff) | |
download | android_packages_apps_Calendar-42dabd1e1e89b0d4af5afb776c6ecc53f6ae9fba.tar.gz android_packages_apps_Calendar-42dabd1e1e89b0d4af5afb776c6ecc53f6ae9fba.tar.bz2 android_packages_apps_Calendar-42dabd1e1e89b0d4af5afb776c6ecc53f6ae9fba.zip |
Update widget to use Agenda style layout
Change-Id: I24f4aa877a2bc1e92617eb70827462ba382280ad
Diffstat (limited to 'res/layout/widget_all_day_item.xml')
-rw-r--r-- | res/layout/widget_all_day_item.xml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/res/layout/widget_all_day_item.xml b/res/layout/widget_all_day_item.xml new file mode 100644 index 00000000..2fa1db5e --- /dev/null +++ b/res/layout/widget_all_day_item.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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="@android:id/content" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:orientation="vertical" + android:minHeight="?android:attr/listPreferredItemHeight"> + + <LinearLayout + android:id="@+id/widget_row" + android:layout_height="64dip" + android:layout_width="match_parent" + android:orientation="horizontal" + android:minHeight="?android:attr/listPreferredItemHeight"> + <ImageView + android:id="@+id/agenda_item_color" + android:layout_width="24dip" + android:layout_height="48dip" + android:scaleType="fitXY" + android:layout_alignParentLeft="true" + android:layout_marginTop="8dip" + android:layout_marginLeft="4dip" + android:layout_marginRight="8dip" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="16dip" + android:orientation="vertical"> + <TextView + android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textSize="18sp" + android:textStyle="bold" + android:ellipsize="marquee" + android:textColor="?android:attr/textColorSecondary" + style="?android:attr/textAppearanceMediumInverse" /> + + <TextView + android:id="@+id/when" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@+id/title" + android:layout_alignLeft="@+id/title" + android:singleLine="true" + android:textSize="14sp" + android:ellipsize="marquee" + android:textColor="?android:attr/textColorSecondary" + style="?android:attr/textAppearanceSmallInverse" /> + + <TextView + android:id="@+id/where" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@+id/when" + android:layout_alignLeft="@+id/title" + android:singleLine="true" + android:ellipsize="marquee" + android:textSize="14sp" + android:textColor="@color/agenda_item_where_text_color" + style="?android:attr/textAppearanceSmallInverse" /> + </LinearLayout> + </LinearLayout> + +</LinearLayout> |