1

の背景画像を設定しましたTabhostが、画像が収まりません それぞれの半分から始まりTabWidget ます 最善を尽くしましたが、これを取り除くことができませんでした 親切に助けてください!

私のxmlのコードは

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/back"
      >

    <LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />
    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"/>
    </LinearLayout>
 </TabHost>  

現在のアプリのスナップショットは

http://img32.imageshack.us/img32/6519/captureyha.png

4

1 に答える 1

1

どこから始めたいですか?

編集:これを試してください。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/back"
      >


<TabHost
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#000"
      >

    <LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />
    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"/>
    </LinearLayout>
 </TabHost>  
</RelativeLayout>
于 2012-08-15T22:37:58.870 に答える