Dodawanie przewijania w tabhost na Androida
Mam hosta kart, w którym mam więcej niż 6 przycisków. Jednak ekran pokazuje tylko 3-4 przyciski.
Poniżej znajduje się kod, którego używam wraz z obrazem.
<?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"
android:background="#777777">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:id="@+id/layTab"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:background="@drawable/navbar_background"
android:layout_alignParentBottom="true"
android:layout_centerVertical="true"
>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
/>
</RelativeLayout>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_above="@+id/layTab"/>
</RelativeLayout>
</TabHost>
Pytanie brzmi, jak przypuszczam, aby dodać zwój, aby móc przewijać wszystkie 6 przycisków lub dowolną inną sztuczkę.
Z poważaniem