プロジェクトタブにTabhostを使用しています。タブの色を青に変更しましたが、タブの下に2pxの線があります。誰かが私が白い色を青い色に変えるのを手伝ってくれますか? http://img816.imageshack.us/img816/228/device.png
3938 次
2 に答える
1
TabHostに関係のない画面デザインに何か問題がある可能性があります。画面/ウィジェット/レイアウトのパディングを確認しましたか?
次のコードスニペットは、まさにあなたが望むことを実行します。別のタブを追加すると、それだけです。
<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">
<RelativeLayout
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"
android:layout_alignParentBottom="true"/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@android:id/tabs">
<include android:id="@+id/tab1" layout="@layout/tab1" />
<include android:id="@+id/tab2" layout="@layout/tab2" />
<include android:id="@+id/tab3" layout="@layout/tab3" />
</FrameLayout>
</RelativeLayout>
</TabHost>
于 2010-06-29T08:17:46.097 に答える
0
タブの下のバーをカスタマイズまたは無効にするためのインターフェイスがまだないかどうかはわかりませんが、回答にも興味があります。
于 2010-06-29T10:01:15.823 に答える