How to change label, size of child-tab(tabspec) (of tabhost)

by Huynh Ngoc Bang » Fri, 20 May 2011 09:34:00 GMT

Sponsored Links
 I create tabhost with 4 tabspec.

I would like to change label (setIndicator), size of tab  when tab
change from this  tab to another.
How can I do.?



Other Threads

1. How to make data independent of activity

Hi All,

I am new to  Android development. My requirement is something like
this. I have two list activities and a service. I also have to
maintain some data in an two different arraylist which are used by the
activity to display. The data will be populated by the service. Since
adding the new elements to arraylist has to be done by the service,
the data has to be independent of the activity. So I had to put it in
an external class. Now whenever an element is added the activity
should be notified. How can I do this in a clean way? I somehow made
it to work using a static handler for activity and a static adapter .
But I dont think this is a good way to do this.  Can someone suggest
me a better way?

Any sample code snippets would help too..

Thanks in advance for your help.
Raja Ram


2. No measured width and height for inflated layout

override onSize(), computescroll() method, then call SetVisiblity().
Would you want to design self scrollView dialog?
Please give some code here,  it is possible to say something right.


3. writing a notification widget for Yahoo mail

4. Issue with getByteArrayRegion returning LARGE byte arrays. (JNI Code)

5. How to remove data in the list view

6. Trouble with Live Wallpaper

7. Pattern 4: Action Bar