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.
我有一个 tabhost,我需要在其中使用 onTabChanged 侦听器,但它不会触发。我有 2 个选项卡,每个选项卡都使用一个活动。有人说这是因为它们都使用活动,一旦它们启动,选项卡事件就不会再次被调用。是这样吗?
如果它们在焦点上,它们可能不会开火。我们可以看到一些代码来确定吗?