|
2 years ago | |
---|---|---|
.. | ||
readme.md | 2 years ago |
增加完成layout后,需要Build->编译模块,以自动生成databinding
在ApiManager 中增加项 在di\ApiProvides 中增加项 在di\ApplicationComponent 中增加项
一个是接口,一个是实现 这里主要实现Presenter中的loadData HelloActivityPresenter重要 在此类中使用api,实现Contract 定义observer,其中覆写onNextWithConnection方法,实现json到对象的转换
activity中增加HelloListActivity.kt res.layout中增加hello_list_act_lay.xml和hello_list_item_lay.xml HelloComponent中增加inject 增加adapter包 在AndroidManifest.xml中增加这个Activity middleware.logic.contract.hello增加HelloListActivityContract middleware.logic.presenter.hello增加HelloListActivityPresenter