我有一个由微调器组成的主页。微调器中的值由 Json 值填充。
我的应用程序中有 5 个选项卡,其中第一个选项卡由主页本身组成。
流程如下:主页 -> 从微调器中选择一个值 -> 然后仅在选择值时才显示选项卡 -> 选项卡选项卡中的第一页再次是主页,并选择了微调器值,
任何人都可以帮助我,因为我只能在从微调器中选择项目时才显示选项卡...
I have a home page which consists of a Spinner. The values in the spinner are populated by Json values.
I have 5 Tabs in the application in which the first tab consists of the Home page itself.
The flow is like this Home Page->Select a Values from Spinner->Then display the Tabs only if a value is selected-> The first page in the Tabs is the Home page again with the Spinner Value selected
Can anyone please help me because i am stuck at displaying tabs only when a item is selected from the spinner...
发布评论
评论(2)
选项卡标签的视图是一个
TabWidget
。在您的TabActivity
中尝试:隐藏选项卡标签。如果要隐藏选项卡标签和选定的选项卡内容,则需要使
TabHost
不可见:The view for the tab labels is a
TabWidget
. In yourTabActivity
try:to hide the tab labels. If you want to hide the tabs labels and the selected tab contents, you want to make the
TabHost
invisible:我认为嵌套活动是解决这个问题的方法...
对于任何可能感兴趣的人,都有详细的 在这里写博客,其中的代码可能会帮助有需要的人。
I think Nested Activities is the way to go for this...
For anyone who might be interested there's a detailed blog here with code which might help some one in need.