我正在开发我的第一个 Android 应用程序,我想用两个连续的图像构建一个主菜单,然后是一个带有一些选项卡的 TabWidget。我使用的是安卓 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>
在此先感谢您的帮助!