OSDN Git Service

Deprecate fill_parent and introduce match_parent.
authorRomain Guy <romainguy@android.com>
Fri, 8 Jan 2010 23:05:33 +0000 (15:05 -0800)
committerRomain Guy <romainguy@android.com>
Fri, 8 Jan 2010 23:11:18 +0000 (15:11 -0800)
Bug: #2361749.

apps/san-angeles/project/res/layout/main.xml

index 25dbf6d..ca19a18 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
-    android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
     >
 <TextView  
-    android:layout_width="fill_parent" 
+    android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:text="Hello World, DemoActivity"
     />