Я новичок в Android и хочу отобразить один TabWidget, чей Tabspec должен иметь одинаковый размер ... не имеет значения, что у них внутри ... Кроме того, я добавил одинHorizontallScrollView, потому что я хочу отображать в своей активности 8 вкладок, а не только 3 ...
Кто-нибудь знает, что я должен добавить в свой XML-файл, чтобы мои 8 действий имели одинаковый размер вкладок?
<?xml version="1.0" encoding="utf-8"?>
<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"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbarAlwaysDrawHorizontalTrack="true"
android:scrollbars="horizontal"/>
</HorizontalScrollView>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</LinearLayout>
</TabHost>
Спасибо