摘要:
我们都知道Activity可作为LifecycleOwner为LiveData的使用提供条件,那么Activity是如何实现LifecycleOwner的呢? Activity虽然实现了LifecycleOwner接口,但是并没有实现相关处理,而是通过添加一个Fragment来代理Lifecycle 阅读全文
posted @ 2022-01-07 16:16
Misdirection
阅读(220)
评论(0)
推荐(0)