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.
我正在使用 Sherlock 选项卡来实现选项卡。一切正常,但我还想做一件事,下面是场景:
假设在特定选项卡上加载了一个片段。在该片段中,当单击按钮时,我将不得不加载另一个片段,但我希望标签保留。
如何实现此功能?什么方法可以在这里提供帮助?
我有同样的问题。我使用 Handler 和 Messenger 在选项卡之间发送数据并更新 UI,从而解决了我的问题。