FragmentTabHost TabWidget tabStrip cannot be customized

落爺英雄遲暮 提交于 2019-12-06 11:57:14

I already changed it by changing the background resource with a selector. I used a 9 patch image to make sure everything will fit. here's the code after adding all the tabs:

tabHost.getTabWidget().getChildAt(0).setBackgroundResource(R.drawable.tab_selector);

just to it for all childs and it works. Not a best solution though it solves my problem. :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!