0

I want to implement opening and closing of tabs in android. I can successfully open a tab, but the problem is how to close the tab by simply clicking on the icon of the image on the top of the tab (as with mozilla or IE).

csgillespie
  • 59,189
  • 14
  • 150
  • 185
Ritesh
  • 306
  • 1
  • 5
  • 12

1 Answers1

0

I might not understand your use case correct but I had the use case that I wanted to refresh the tab content when the user 'reselects' a current visible tab. The solution is described here. Maybe it fit's for you and instead of refresh the content you can simply close the tab.

Community
  • 1
  • 1
FrVaBe
  • 47,963
  • 16
  • 124
  • 157
  • there is an icon and text for each tab when icon is clicked its tab must be closed.now getting here icon is like a cross sign like a browser – Ritesh Apr 04 '11 at 12:41
  • Where is _there_? Do you mean the tab register which you also use to activate a tab? Do you change the icon to the 'cross' when the tab is activated? That means selecting the tab register again should close the tab? Than have a look at my link - or maybe provide a screenshot... – FrVaBe Apr 04 '11 at 16:53