0

タブ ホストを作成し、いくつかのタブを追加しました。すべて正常に動作しますが、右にスクロールすると、タブ ホストが完全に非表示になるまで、最後のタブの境界線を未定義の暗い領域に移動し続けます。左へのスクロールは正常に機能します。この問題について何か考えはありますか?

ありがとうございました。

編集:

 <TabHost android:id="@android:id/tabhost"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        >

        <LinearLayout android:orientation="vertical"
            android:layout_width="fill_parent" android:layout_height="wrap_content">
            <View android:layout_width="fill_parent" android:layout_height="0.5dip"
                android:background="#000" />

            <LinearLayout android:orientation="horizontal"
            android:layout_width="fill_parent" android:layout_height="wrap_content"
            android:background="#000000">
                <HorizontalScrollView 
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:scrollbars="none"
                    >

                    <TabWidget android:id="@android:id/tabs"
                        android:layout_width="wrap_content" android:layout_height="wrap_content"
                        />

            </HorizontalScrollView>
            </LinearLayout> 

            <View android:layout_width="fill_parent" android:layout_height="4dp"
                android:background="#696969" />

            <FrameLayout android:id="@android:id/tabcontent"
                android:layout_width="0px" android:layout_height="0px" />
        </LinearLayout>
    </TabHost>
4

0 に答える 0