android的tab标签默认是纵向的,如何才能实现横向的效果?

解决方案 »

  1.   

    我想这个应该就是你要找的,你自己去看看吧!
    http://www.ophonesdn.com/blog/yeya/showBlog/publicshow/050933dd-30bc-4b9f-8cc6-0c2e20ab7eb3?count=&max=&index=
      

  2.   

    把布局里的vertical改为horizontal
      

  3.   

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

  4.   

    这个里面写的很清楚了,不过要注意几个细节,一个是布局高度和宽度的设置,然后是Indicator的设置,用到了inflater,再就是TabHost中的里nearlayout要使用垂直布局。
      

  5.   

    楼上说的很对,TabHost中的里nearlayout要使用垂直布局,我已经验证过了。 根据LZ的思路,实现了水平布局。