OSDN Git Service

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

res/layout/candidates_container.xml

index eda7e28..3a0c71b 100644 (file)
@@ -23,7 +23,7 @@
   <ImageButton android:id="@+id/arrow_left_btn"
     android:background="@drawable/arrow_bg"
     android:src="@drawable/arrow_left"
-    android:layout_height="fill_parent"
+    android:layout_height="match_parent"
     android:layout_width="30dip"
     android:clickable="true"
     android:layout_alignParentLeft="true"/>
     android:background="@drawable/arrow_bg"
     android:src="@drawable/arrow_right"
     android:layout_width="30dip"
-    android:layout_height="fill_parent"
+    android:layout_height="match_parent"
     android:clickable="true"
     android:layout_alignParentRight="true"/>
 
   <ViewFlipper android:id="@+id/candidate_flipper"
-    android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
     android:layout_toLeftOf="@id/arrow_right_btn"
     android:layout_toRightOf="@id/arrow_left_btn">
     <view class="com.android.inputmethod.pinyin.CandidateView"
         android:id="@+id/candidate_view1"
-        android:layout_width="fill_parent"
-        android:layout_height="fill_parent" />
+        android:layout_width="match_parent"
+        android:layout_height="match_parent" />
     <view class="com.android.inputmethod.pinyin.CandidateView"
         android:id="@+id/candidate_view2"
-        android:layout_width="fill_parent"
-        android:layout_height="fill_parent" />
+        android:layout_width="match_parent"
+        android:layout_height="match_parent" />
   </ViewFlipper>
 </com.android.inputmethod.pinyin.CandidatesContainer>