如何删除图像之间的空白?

0 android margin imageview android-layout

我正在开发我的第一个Android应用程序,我想构建一个包含两个连续图像的主菜单,然后构建一个带有某些标签的TabWidget。我正在使用Android 2.3。

我不知道为什么,但是,在图像之间,似乎出现了一些看起来很难看的空白...我一直在试图修改paddin和margin,但是没有用...有人知道会发生什么吗?

这是我的代码:

<?xml version="1.0" encoding="utf-8"?>

<TabHost 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@android:id/tabhost"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
    <!--  android:background="#000000" -->


<LinearLayout
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <ImageView android:id="@+id/TwiceBar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/twice_bar"
        android:scaleType="fitStart"
        />

    <ImageView
        android:id="@+id/Banner_publicidad"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/banner_publicidad"
        android:scaleType="fitStart" />

    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

     </LinearLayout>
</TabHost>
Run Code Online (Sandbox Code Playgroud)

在此先感谢您的帮助!

Ray*_*d P 5

您是否尝试过将android:adjustViewBounds =“ true”添加到ImageViews?