Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好,
在下图中,我有我的应用程序的布局。我在底部的标签主机中有一个标签小部件(绿色)。我在中间有标签内容(粉红色)。
我在标签主机中有 3 个不同的标签,但是右上角有 2 个按钮(蓝色)。我想单击顶部的按钮并更改选项卡内容。
这可能吗?
在常规选项卡上单击我让每个选项卡打开不同的活动。
谢谢,
采用yourTabHost.setCurrenttab(INDEX YOU WANT TO SET)
yourTabHost.setCurrenttab(INDEX YOU WANT TO SET)