Android Support Design TabLayout: Gravity Center and Mode Scrollable

前端 未结 13 2030

I am trying to use the new Design TabLayout in my project. I want the layout to adapt to every screen size and orientation, but it can be seen correctly in one orientation.<

13条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 07:10

    keeps things simple just add app:tabMode="scrollable" and android:layout_gravity= "bottom"

    just like this

    
    

提交回复
热议问题