Skip to content Skip to sidebar Skip to footer

Empty Space Above ImageView

I got a static ImageView above a listView. But the imageView is showing some empty space above it. How can i remove this empty space? -when i use the the image as background of a

Solution 1:

A bit late, but may help others that stubmle across this:

"Adjust ViewBounds" worked for me, when a drawable automatically scales the height of the View it's set to. (Resulting in empty space above and below the image itself)


Solution 2:

set your image as background to your Imageview.

 <ImageView
        android:id="@+id/titlebartear"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:background="@drawable/titlebartear"
        />

Solution 3:

android:layout_marginTop="-5dip"

worked :S


Post a Comment for "Empty Space Above ImageView"