简体   繁体   中英

Android TabWidget text space

Exists anyway to change left and right text space? Look at attached screen. So many space is wasted. They could fit without line break

Regards

屏幕

<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>

I am guessing as I cannot see your xml layout code but i suspect you do not have android:layout_width="fill_parent" within it. If you do then post your xml and I will have a think.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM