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.
我需要在片段之间共享 ViewModel 实例。我知道如何使用 ViewModelProviders 来做到这一点(就像这里),但是从 1.1.0 开始它就被弃用了。现在如何实施?谢谢。