Android 选项卡和片段图像之间的空白

Android 选项卡和片段图像之间的空白,android,android-layout,Android,Android Layout,我正在开发我的应用程序的GUi,我使用了Actionbar sherlock和标签以及片段。 有一条白线(标签和图像之间的间隙),我正在尝试删除它,但我不能。它仅在较小的屏幕尺寸(小于4英寸)上显示。它不显示在galaxy nexus上。 这是我的片段XML文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" andr

我正在开发我的应用程序的GUi,我使用了Actionbar sherlock和标签以及片段。 有一条白线(标签和图像之间的间隙),我正在尝试删除它,但我不能。它仅在较小的屏幕尺寸(小于4英寸)上显示。它不显示在galaxy nexus上。 这是我的片段XML文件

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:src="@drawable/promo" />
<Button
    android:id="@+id/button2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true" />
<ListView
    android:id="@+id/lv1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_above="@+id/button2"
    android:layout_alignParentRight="true"
    android:layout_below="@+id/imageView1" >
</ListView>
<ImageView
    android:id="@+id/imageView2"
    android:layout_width="100dip"
    android:layout_height="50dip"
    android:layout_above="@+id/lv1"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:src="@drawable/mid_bar" />
<ImageView
    android:id="@+id/imageView3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentRight="true"
    android:layout_alignTop="@+id/imageView2"
    android:layout_marginRight="35dp"
    android:layout_marginTop="14dp"
    android:src="@drawable/play_button" />
<TextView
    android:id="@+id/tv1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignTop="@+id/imageView2"
    android:textColor="@android:color/black"
    android:textSize="14dp"
    android:textStyle="bold" 
    android:paddingLeft="10dip"/>


您是否尝试过专门为较小屏幕创建布局文件,而不是为所有屏幕创建通用xml文件?没有,还没有。我正在使用通用xml。我创建了3个文件夹布局小,布局正常和布局较大,根据这一点,我更改了xml,但屏幕大小仍超过3.7英寸,从布局较大中提取xml,那么我现在该怎么办?您可以尝试布局-sw320dp,这将针对典型的手机屏幕大小,你也试过删除图像视图上方的边距吗?我没有在图像视图中使用边距选项卡。是的,很抱歉看到了错误的图像视图哈哈,你可以在小屏幕上的图像顶部尝试负边距