I'd like to use an ActionBar tab that has a text title of "Messages", and use setIcon() with a custom drawable to show an "unread messages count" ... a little red bubble with a number inside. This will attact a users attention to the tab, letting them know there are messages to be read.
No problem creating the custom drawable and setting it as the tab bar icon, have that working fine. However, when the # of unread messages is zero, I want this icon to disappear. I found that simply getting the tab from actionBar() and calling setIcon(null) doesn't actually do anything on the tab. I can fiddle with visibility, but the icon appears to still occupy space in the view, i.e. the text isn't centered. Is going down the path of setCustomView() on the tab the only option? Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

