How to reduce the tab bar height and display in bottom

前端 未结 8 719
长情又很酷
长情又很酷 2021-02-02 04:42

can anybody tell how to reduce the height of tab bar and display tab bar in bottom

Thanks

相关标签:
8条回答
  • 2021-02-02 05:24

    Most likely you'll have to implement tabs by your own. As far as I know that's impossible with regular android tabs.

    0 讨论(0)
  • 2021-02-02 05:27
    <?xml version="1.0" encoding="utf-8"?>
    <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/tabhost" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:padding="1dp">
    
        <RelativeLayout android:layout_width="fill_parent"
            android:layout_height="fill_parent">
    
            <TabWidget android:id="@android:id/tabs"
                android:layout_width="fill_parent" android:layout_height="60dp"
                android:layout_alignParentBottom="true" />
    
            <FrameLayout android:id="@android:id/tabcontent"
                android:layout_width="fill_parent" android:layout_height="fill_parent"
                android:padding="1dp">
            </FrameLayout>
        </RelativeLayout>
    
    0 讨论(0)
提交回复
热议问题