Я получил статический ImageView над listView.
Но imageView показывает некоторое пустое пространство над ним.
Как я могу удалить это пустое место?
- когда я использую изображение в качестве фона TextView, оно идеально выравнивается в родительской верхней части
Вот мой xml для ImageView:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/background_light"
>
<ImageView
android:id="@+id/titlebartear"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginTop="-5dip"
android:src="@drawable/titlebartear"
/>
<ListView android:id="@android:id/list"
android:paddingTop="0px"
android:tag="fileslist"
android:fastScrollEnabled="true"
android:smoothScrollbar="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:divider="@color/pijndagboek_light_blue"
android:dividerHeight="2px"
android:cacheColorHint="#00000000"
android:layout_below="@id/titlebartear"
/>
</RelativeLayout>