我正在使用谷歌设计支持库中的新TabLayout,我想知道如何在该布局中将活动选项卡居中。
目前我将整个布局居中,如下所示:
<android.support.design.widget.TabLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" />现在,我想要将活动选项卡置于该布局的中心位置。就像在TabLayout之前是怎么做的。无论有多少个选项卡,活动的选项卡始终位于中心。我如何才能做到这一点?谢谢。
发布于 2016-04-27 23:18:55
需要对SlidingTabStrip使用填充
https://stackoverflow.com/questions/32832302
复制相似问题