How do I remove the selected tab indicator from the TabWidget?

后端 未结 17 1259
猫巷女王i
猫巷女王i 2020-12-09 02:19

Here\'s what I\'d like to remove :

\"enter

How do I replace the indicator show

17条回答
  •  北海茫月
    2020-12-09 03:03

    tabHost.getTabWidget().setStripEnabled(false);
    tabHost.getTabWidget().getChildAt(1).setBackgroundColor(getResources().getColor(R.color.tabcolor));
    tabHost.getTabWidget().getChildAt(2).setBackgroundColor(getResources().getColor(R.color.tabcolor));
    

    More info here

提交回复
热议问题