From bf25a2cc3b00c085b8207443e9a0419108536aef Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 8 Jan 2010 15:06:50 -0800 Subject: [PATCH] Deprecate fill_parent and introduce match_parent. Bug: #2361749. --- res/layout-land/desk_clock.xml | 20 ++++++++++---------- res/layout/alarm_alert.xml | 8 ++++---- res/layout/alarm_clock.xml | 18 +++++++++--------- res/layout/alarm_time.xml | 10 +++++----- res/layout/analog_appwidget.xml | 4 ++-- res/layout/context_menu_header.xml | 8 ++++---- res/layout/desk_clock.xml | 20 ++++++++++---------- res/layout/desk_clock_buttons.xml | 10 +++++----- res/layout/desk_clock_saver.xml | 8 ++++---- res/layout/desk_clock_time_date.xml | 2 +- res/layout/save_cancel_alarm.xml | 14 +++++++------- res/values/styles.xml | 4 ++-- src/com/android/deskclock/SetAlarm.java | 4 +--- 13 files changed, 64 insertions(+), 66 deletions(-) diff --git a/res/layout-land/desk_clock.xml b/res/layout-land/desk_clock.xml index 0cbaccf..3c58098 100644 --- a/res/layout-land/desk_clock.xml +++ b/res/layout-land/desk_clock.xml @@ -17,13 +17,13 @@ @@ -36,8 +36,8 @@ android:orientation="vertical" android:layout_gravity="left" android:layout_weight="1" - android:layout_width="fill_parent" - android:layout_height="fill_parent" + android:layout_width="match_parent" + android:layout_height="match_parent" android:layout_marginLeft="25dip" android:layout_marginTop="18dip" android:layout_marginRight="18dip" @@ -47,7 +47,7 @@ @@ -117,8 +117,8 @@ @@ -46,7 +46,7 @@ @@ -72,11 +72,11 @@ + android:layout_width="match_parent" + android:layout_height="match_parent"> diff --git a/res/layout/alarm_time.xml b/res/layout/alarm_time.xml index 5c3b19b..9c4fb7b 100644 --- a/res/layout/alarm_time.xml +++ b/res/layout/alarm_time.xml @@ -16,7 +16,7 @@ @@ -54,7 +54,7 @@ android:src="@*android:drawable/divider_vertical_dark" android:background="?android:attr/windowBackground" android:layout_width="wrap_content" - android:layout_height="fill_parent" + android:layout_height="match_parent" android:paddingTop="4dip" android:paddingBottom="4dip" android:scaleType="fitXY" @@ -64,7 +64,7 @@ and an optional line below, used for day/days of week --> @@ -106,7 +106,7 @@ diff --git a/res/layout/analog_appwidget.xml b/res/layout/analog_appwidget.xml index 6a10611..d2becb3 100644 --- a/res/layout/analog_appwidget.xml +++ b/res/layout/analog_appwidget.xml @@ -19,5 +19,5 @@ android:dial="@drawable/appwidget_clock_dial" android:hand_hour="@drawable/appwidget_clock_hour" android:hand_minute="@drawable/appwidget_clock_minute" - android:layout_width="fill_parent" - android:layout_height="fill_parent" /> + android:layout_width="match_parent" + android:layout_height="match_parent" /> diff --git a/res/layout/context_menu_header.xml b/res/layout/context_menu_header.xml index 6ac4dc5..55846f5 100644 --- a/res/layout/context_menu_header.xml +++ b/res/layout/context_menu_header.xml @@ -16,7 +16,7 @@ @@ -40,8 +40,8 @@ android:orientation="vertical" android:layout_gravity="left" android:layout_weight="1" - android:layout_width="fill_parent" - android:layout_height="fill_parent" + android:layout_width="match_parent" + android:layout_height="match_parent" android:layout_marginLeft="22dip" android:layout_marginTop="18dip" android:layout_marginRight="18dip" @@ -51,7 +51,7 @@ @@ -110,8 +110,8 @@