SlidingTabLayout to fit the screen

前端 未结 9 1642
南笙
南笙 2020-12-07 18:45

I am using Google\'s SlidingTabLayout. As i only have 3 tabs to be displayed, I am seeing empty space after last tab. Please screenshot below.

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 19:32

    Google have released Design Support Library. You can now use TabLayout. To make tabs fits the screen you can call setTabMode(TabLayout.MODE_FIXED);

提交回复
热议问题