I managed to get around this problem, but I think this might be a bug. to refresh the text within the tab, I had to fetch the TextView widget for the actual tab, and invalidate that...
RelativeLayout vg = (RelativeLayout)getTabWidget().getChildAt(0); if (vg != null) { TextView v = (TextView) vg.getChildAt(1); if (v != null) { v.setText(str); v.invalidate(); } } This worked. BUT I shouldn't have to fetch this TextView should I?, I should be able to invalidate and refresh my tags at a higher level? Is this a bug or am I missing something? Regards, Eurig Jones On Aug 18, 3:52 pm, Eurig Jones <eurigjo...@gmail.com> wrote: > I have a TabActivity based class which has 3 tabs. All are > ListActivities (but that's not important for this problem) > > I'm updating the TabHost's TabSpec's to change the text on the tabs. > This works fine and the ListActivities display correctly. > > Iater on the execution flow I need to update the Text on the tabs from > "Current Text" to "Current Text (3)", for example. I update the > TabSpec.setIndicator() with the new text, and attempt to call > invalidate() on the TabWidget (and all it's children). But the tab > text refuses to update!! > > Where am I going wrong here? > > Regards, > Eurig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---