Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望每个选项卡的宽度与 PagerSlidingTabStrip 中我最宽的选项卡的宽度相同。我仍然希望标签超出屏幕宽度,以便它们可以滚动。
如果您使用的是开发人员站点 SlidingTabsBasic 中的示例。然后您可以在方法中设置文本视图的宽度(在 SlidingTabLayout 类下)。
protected TextView createDefaultTabView(Context context)