2
ImageView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
/>

OR

     <ImageView
            android:id="@+id/imageView1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
 />
Dhaval Parmar
  • 18,812
  • 8
  • 82
  • 177
  • 2
    FILL_PARENT (renamed MATCH_PARENT in API Level 8 and higher), http://stackoverflow.com/questions/5761960/what-is-the-difference-between-match-parent-and-fill-parent-property-in-android – David Apr 10 '13 at 10:34

2 Answers2

1

both are the same thing (in API Level 8+).

fill_parent: The view should be as big as its parent

Dhaval Parmar
  • 18,812
  • 8
  • 82
  • 177
0

This has been asked several times before on SO, here is a similar question: difference between fill_parent and match_parent in android

The fill_parent tag was renamed to match_parent as of API level 8.

Community
  • 1
  • 1
lillamiu
  • 1
  • 1