summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-01-08 15:07:19 -0800
committerRomain Guy <romainguy@android.com>2010-01-08 15:12:05 -0800
commitbf003fe7eb508565cf83289c26f4069ff025a52c (patch)
treeacd285d330eb04581d5e13c255a366c720c9d671
parentf9b641a930883873e7fb87dc956e9011f93d4ae2 (diff)
downloadAccountsAndSyncSettings-bf003fe7eb508565cf83289c26f4069ff025a52c.tar.gz
Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
-rw-r--r--res/layout/account_preference.xml2
-rw-r--r--res/layout/account_sync_screen.xml18
-rw-r--r--res/layout/add_account_screen.xml6
-rw-r--r--res/layout/manage_accounts_screen.xml14
-rw-r--r--res/layout/provider_preference.xml2
-rw-r--r--res/layout/title.xml4
-rw-r--r--src/com/android/settings/SyncActivityTooManyDeletes.java2
7 files changed, 24 insertions, 24 deletions
diff --git a/res/layout/account_preference.xml b/res/layout/account_preference.xml
index a3a9d43..810c57a 100644
--- a/res/layout/account_preference.xml
+++ b/res/layout/account_preference.xml
@@ -15,7 +15,7 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
diff --git a/res/layout/account_sync_screen.xml b/res/layout/account_sync_screen.xml
index 4409acb..1a259ff 100644
--- a/res/layout/account_sync_screen.xml
+++ b/res/layout/account_sync_screen.xml
@@ -18,16 +18,16 @@
*/
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/title"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:drawSelectorOnTop="false"
@@ -35,19 +35,19 @@
/>
<TextView android:id="@+id/sync_settings_error_info"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/sync_is_failing" />
<LinearLayout android:id="@+id/remove_account_area"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@android:drawable/bottom_bar">
<View
android:layout_width="0dip"
- android:layout_height="fill_parent"
+ android:layout_height="match_parent"
android:layout_weight="1"/>
<Button android:id="@+id/remove_account_button"
@@ -59,13 +59,13 @@
<View
android:layout_width="0dip"
- android:layout_height="fill_parent"
+ android:layout_height="match_parent"
android:layout_weight="1"/>
</LinearLayout>
<RelativeLayout android:id="@+id/finish_button_area"
android:layout_height="wrap_content"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:background="@android:drawable/bottom_bar"
android:visibility="gone">
diff --git a/res/layout/add_account_screen.xml b/res/layout/add_account_screen.xml
index 8d4be3d..67cb7aa 100644
--- a/res/layout/add_account_screen.xml
+++ b/res/layout/add_account_screen.xml
@@ -18,12 +18,12 @@
*/
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:orientation="vertical">
<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:drawSelectorOnTop="false"
diff --git a/res/layout/manage_accounts_screen.xml b/res/layout/manage_accounts_screen.xml
index 55e8d22..0ed9959 100644
--- a/res/layout/manage_accounts_screen.xml
+++ b/res/layout/manage_accounts_screen.xml
@@ -18,12 +18,12 @@
*/
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:orientation="vertical">
<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:drawSelectorOnTop="false"
@@ -31,19 +31,19 @@
/>
<TextView android:id="@+id/sync_settings_error_info"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/sync_is_failing" />
<LinearLayout
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@android:drawable/bottom_bar">
<View
android:layout_width="0dip"
- android:layout_height="fill_parent"
+ android:layout_height="match_parent"
android:layout_weight="1"/>
<Button android:id="@+id/add_account_button"
@@ -55,7 +55,7 @@
<View
android:layout_width="0dip"
- android:layout_height="fill_parent"
+ android:layout_height="match_parent"
android:layout_weight="1"/>
</LinearLayout>
diff --git a/res/layout/provider_preference.xml b/res/layout/provider_preference.xml
index 3daaf30..5b49800 100644
--- a/res/layout/provider_preference.xml
+++ b/res/layout/provider_preference.xml
@@ -15,7 +15,7 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
diff --git a/res/layout/title.xml b/res/layout/title.xml
index 85efdd3..75ea4d3 100644
--- a/res/layout/title.xml
+++ b/res/layout/title.xml
@@ -39,7 +39,7 @@
<TextView
android:id="@+id/user_id"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold"
@@ -50,7 +50,7 @@
<TextView
android:id="@+id/provider_id"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:singleLine="true"
diff --git a/src/com/android/settings/SyncActivityTooManyDeletes.java b/src/com/android/settings/SyncActivityTooManyDeletes.java
index 61ac59d..d122640 100644
--- a/src/com/android/settings/SyncActivityTooManyDeletes.java
+++ b/src/com/android/settings/SyncActivityTooManyDeletes.java
@@ -85,7 +85,7 @@ public class SyncActivityTooManyDeletes extends Activity
final LinearLayout ll = new LinearLayout(this);
ll.setOrientation(LinearLayout.VERTICAL);
final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
- ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, 0);
+ ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, 0);
ll.addView(textView, lp);
ll.addView(listView, lp);