Fill_parent, wrap_content, match_parent usage Example test
Fill_parent set a top layout or control to make it full of screens.
Wrap_content layouts are automatically scaled to fit the contents of the view (just to support the size of their content)
Android2.2 after fill_parent replaced by Match_parent.
Note:Beginning with Android 2.2 (API level 8),"fill_parent"has been renamed"match_parent"To better reflect the behavior. The reason is so if you set a view to "fill_parent" It does expand to fill the remaining space after sibling views is considered, but instead expands to match the size of the parent view no matter what-it would overlap any sibling views.
<button android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= " @string/button_send " />
<button android:layout_width= "match_parent" android:layout_height= "wrap_content" android:text= " @string/button_send " />
<button android:layout_width= "wrap_content" android:layout_height= "match_parent" android:text= " @string/button_send " />
<button android:layout_width= "match_parent" android:layout_height= "match_parent" android:text= "@string/button_send" />
ref:http://blog.csdn.net/jumping_android/article/details/7397991