0

In below tabview layout contents how to get reference for each textview and change color, text programatically.?

For example i want to change RF1235678 textview color and text

enter image description here

Vishwanath.M
  • 6,235
  • 11
  • 42
  • 56

1 Answers1

3

@Vishwanath

TabSpec tab1 = tabHost.newTabSpec("First Tab");

TextView textView = new TextView(this);
textView.setText("exampletab");
textView.setTextColor(Color.BLUE);
tab1.setIndicator(textView);

tabHost.addTab(tab1);
Amin Tavassolian
  • 363
  • 3
  • 10