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.
我没有使用图像图标,仅使用(固定大小)文本指示器。如何将选项卡高度设置为最有效的大小?[wrap_content 无效。]
您想使用该setIndicator方法设置应在选项卡内显示的视图。这将允许您使用自定义视图
setIndicator
TabHost 文档
tabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 35;