0

左右のテキストスペースを変更するためにとにかく存在しますか? 添付の画面を見てください。非常に多くのスペースが無駄になっています。改行なしで収まる

よろしく

画面

<TabHost android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/tabHost"
android:gravity="bottom"
xmlns:android="http://schemas.android.com/apk/res/android">    
<TabWidget
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@android:id/tabs" />
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabcontent"
android:paddingTop="60px">
<!-- First tab -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tabStations"
android:orientation="vertical">    
</LinearLayout>
<!-- Second Tab -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/tabSuggestions"
android:orientation="vertical">
</LinearLayout>
</FrameLayout>
</TabHost>
4

1 に答える 1

0

あなたのxmlレイアウトコードが見えないので推測していますが、その中に android:layout_width="fill_parent" が含まれていないと思われます。もしそうなら、あなたのxmlを投稿してください。私は考えます。

于 2012-11-07T22:15:24.103 に答える