summaryrefslogtreecommitdiffstats
path: root/samples/MultiResolution
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-01-08 15:05:33 -0800
committerRomain Guy <romainguy@android.com>2010-01-08 15:11:18 -0800
commit74192eafec8408417114d77784cd35eda5df573c (patch)
treefac15940efc0fdc38b8bdc44d4c3dc6efa474aab /samples/MultiResolution
parentb4e39aebf6b27aa0ed094a75bde8b2bacda28d98 (diff)
downloadandroid_development-74192eafec8408417114d77784cd35eda5df573c.tar.gz
android_development-74192eafec8408417114d77784cd35eda5df573c.tar.bz2
android_development-74192eafec8408417114d77784cd35eda5df573c.zip
Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
Diffstat (limited to 'samples/MultiResolution')
-rw-r--r--samples/MultiResolution/res/layout-land/main.xml18
-rw-r--r--samples/MultiResolution/res/layout/main.xml18
2 files changed, 18 insertions, 18 deletions
diff --git a/samples/MultiResolution/res/layout-land/main.xml b/samples/MultiResolution/res/layout-land/main.xml
index f704425c3..515349fed 100644
--- a/samples/MultiResolution/res/layout-land/main.xml
+++ b/samples/MultiResolution/res/layout-land/main.xml
@@ -16,28 +16,28 @@
<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="horizontal"
android:background="@drawable/background">
<LinearLayout
android:layout_weight="1"
android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
<!-- Notice that widget sizes are expressed in dip, or device-independent
pixels, while text sizes are expressed in sp, or scale-independent
pixels, to factor in user-chosen font sizes. -->
<FrameLayout
android:background="@drawable/image_container"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:id="@+id/image_container">
<ImageView
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:id="@+id/image_view"
android:scaleType="fitCenter"/>
<TextView
@@ -57,7 +57,7 @@
<LinearLayout
android:layout_width="wrap_content"
- android:layout_height="fill_parent"
+ android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginLeft="10dip"
android:gravity="top">
diff --git a/samples/MultiResolution/res/layout/main.xml b/samples/MultiResolution/res/layout/main.xml
index 4c01e8238..991084984 100644
--- a/samples/MultiResolution/res/layout/main.xml
+++ b/samples/MultiResolution/res/layout/main.xml
@@ -16,27 +16,27 @@
<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"
android:background="@drawable/background">
<LinearLayout
android:layout_weight="1"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
<!-- Notice that widget sizes are expressed in dip, or device-independent
pixels, while text sizes are expressed in sp, or scale-independent
pixels, to factor in user-chosen font sizes. -->
<FrameLayout
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:id="@+id/image_container"
android:background="@drawable/image_container">
<ImageView
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:id="@+id/image_view"
android:scaleType="fitCenter"/>
<TextView
@@ -55,7 +55,7 @@
</LinearLayout>
<LinearLayout
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:gravity="center">