TabWidget tabWidget=myTabhost.getTabWidget();//设置字体颜色
for(int i=0;i<tabWidget.getChildCount();i++){
TextView tv=(TextView)tabWidget.getChildAt(i).findViewById(android.R.id.title);
ImageView iv=(ImageView)tabWidget.getChildAt(i).findViewById(android.R.id.icon);
iv.setPadding(0, 10, 0, 0);
tv.setPadding(0, -5, 0, 0);
tv.setTextColor(Color.BLACK);

}
myTabhost 是一个Tabhost

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-01-18
  • 2022-12-23
猜你喜欢
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
相关资源
相似解决方案