Androidの rekaszero の回答に従って、tabwidgetのタブ間のスペースを削除しましたが、タブを自動的に画面に合わせて設定する必要があり (このミニ チュットでは、大きすぎて画面から外れています)、削除する必要もあります。タブには、テキストではなくタブ全体を占めるアイコンのみを含める必要があるため、テキスト。main.class で幅を設定できますが、幅を設定したくありませんが、自動に合わせます。
誰かが私を助けることができますか?ありがとう
Ok。main.xml の次のコードに置き換えて、大きなタブの幅を見つけました。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="5dp" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="5dp" >
</FrameLayout>
</LinearLayout>
</TabHost>
</RelativeLayout>
ここで、テキストを削除しようとします。あなたが私を助ける方法をすでに知っているなら。ありがとう