Android, Tabs without Actionbar

前端 未结 3 840
挽巷
挽巷 2020-12-24 03:58

This question has been asked (for example, here Using ViewPager with Tabs without actionBar), however the answer there doesn\'t work. There\'s some links to Swipey but unfor

3条回答
  •  长情又很酷
    2020-12-24 04:23

    You can:

    • Use a ViewPager with a PagerTabStrip

    • Use a ViewPager with the TabPageIndicator class from the ViewPagerIndicator library

    • Use a ViewPager with other third-party tab indicators (e.g., in the "View Pagers" category at the Android Arsenal)

    • Use a ViewPager and design your own tabbed indicator

    • Use a FragmentTabHost and skip the swiping part

提交回复
热议问题