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.
内置应用加速器
我不确定这是一个错误还是只是错误的代码,但是我有 5 个选项卡。第 5 个窗口隐藏选项卡组。
我在第 5 个窗口上有一个点击事件,将活动选项卡设置为第 2 个(索引 1)
发生的事情是,它正在切换到正确的选项卡,但是如果我按下另一个按钮,两者都会保持突出显示。一个周围有块,另一个只是图标是蓝色的。
有任何想法吗?
使用的代码:
tabGroup.setActiveTab(1);
你有没有尝试过:
tabGroup.setActiveTab(tab1);//tab1 is the tab has index = 1