Android TabHost: update tabs from tab's activity
Posted
by joshuadlillie
on Stack Overflow
See other posts from Stack Overflow
or by joshuadlillie
Published on 2010-05-31T18:14:43Z
Indexed on
2010/05/31
19:53 UTC
Read the original article
Hit count: 947
I have a TabActivity and am going to have 3 or 4 tabs.
In TabA, I would like to have an ExpandableListView, which will list products. I would like TabC to act as a sort of "shopping cart", probably with a ListView of itself. So, my question is: is there a way to interact with the TabHost from the Activity? I would like to be able to click a button inside of TabA and have it update and switch to TabC. Is this possible? Can I get the Tab's activities call it's parents methods?
© Stack Overflow or respective owner