My application needs to update tab indicator dynamically, I\'m trying to do this by invoke TabSpec.setIndicator(), but it doesn\'t work. Here is my code:
In onCreate met
Try this:
TextView title = (TextView) TabHost.getTabWidget().getChildTabViewAt(tabId).findViewById(android.R.id.title);
I apologize for my earlier incorrect answer, now deleted.
Try using getChildViewAt() on TabWidget
.
i managaed with getChildTabViewAt(tabId)
instead of childviewAt(id)
for multiple tab.