我在ListView上方获得了静态ImageView。 但imageView显示上面有一些空的空间。ImageView上方的空白位置
我怎样才能删除这个空的空间?
- 当我使用的图像作为一个TextView的背景及其在母公司顶
这里是我的ImageView的XML完美神韵::
<?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>
您是否尝试过使用android:scaleType参数? http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType; http://developer.android.com/reference/android/widget/ImageView.ScaleType.html – jcxavier 2012-03-14 12:13:36
你可以发布这个意图的所有.xml文件吗? (通常是它的main.xml,但你可能已经改变了。)这个问题可能在文件的其他地方。 – pogo2065 2012-03-14 12:15:35
这是所有的布局@JamesWright – Luciano 2012-03-14 12:34:01