You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 28, 2021. It is now read-only.
原话:修改 BasicActivity 的 onCreate 方法,用 DatabindingUtil.setContentView() 来替换掉 setContentView(),然后创建一个 user 对象,通过 binding.setUser(user) 与 variable 进行绑定。
那不同的activity应该会使用不一样的对象,比如登陆就有可能使用user对象,而一个详情界面就使用一个
从服务器取回来的Detail对象,但是都继承自BaseActivity,设置user对象不对吧?