Hello Folks, i'm trying to create some TabHosts adding Icons to each Tab Header; what i would like realize, is to add some number in some Tab Headers, a little number - updated dynamically at runtime next to tab icon (like Facebook notifies for example). I've seen the TabHostExtras Library, but i feel hard how to figure out this activity. Could i use another view than TabHost maybe or there's some direction where can i go using it ?
Thank you to all, but both solutions you exposed does not allow, at first look, to draw into tab header; i can just add some simply text and this text is added next to the icon in horizontal direction and not right down. It would be good if the text added with TabHostExtras could be added wrapping the icon and not next to the icon in horizontal direction.
It would be great and useful if it could be possible to overlap 2 or more icons in the Tab Headers having the opportunity to drawing into using rectangles and other primitives functions without losting the previous added content.
Drachmad i mean this: I set an icon in a Tab Header without title (e.g. "Users.png" icon); in background activity through socket i get a notify (friendship request e.g.); i would like to show a number inside a little rectangle as background next to (or down) the icon in Tab Header. Image what happen in Facebook when you receive a notify. I'm trying to figure out this with TabHost.
I Could change the icon at Runtime dynamically yes.....but....i should create "n" same icons just with different numbers drawn over counting till 100 ("Users1.png", "Users2.png", "Users3.png"), or ....1000! That's not a good stuff.
As you can see from my sample.
You can have only one picture and overlay the other data.
If necessary remove the previous overlay.
Do you need a sample?
As you can see from my sample.
You can have only one picture and overlay the other data.
If necessary remove the previous overlay.
Do you need a sample?
DrachMad yes, i've seen you example....but is that a custom Tab controls Library ? I don't think you did that using TabHost standard view (neither TabHostExtras)...isn'it ?
Some brief and little additional details it about should be good to make me some example where i can proceed to. Thank you very much
I try to make it simple.
As you can see from the example there is 2 bitmap, one for the tab itself and the up/down arrow.
To simulate the event I use button1, click it several times.
I hope it helps
I try to make it simple.
As you can see from the example there is 2 bitmap, one for the tab itself and the up/down arrow.
To simulate the event I use button1, click it several times.
I hope it helps
Thank you Drach, that's a good example to start. So i cannot realize this task using standard TabHost View neither with support of TabHostExtras as i can see..