Jake Woki
Jake Woki
@Dd-ouni 按@dante2359 的做法可以
``` Java Acitivity: @Override protected void onDestroy() { super.onDestroy(); mBasePresenter.detachView(); } Fragment: @Override public void onDestroyView() { super.onDestroyView(); mBasePresenter.detachView(); } ```
https://github.com/loopeer/itemtouchhelper-extension
LiveData和rxjava用一个就行了,官方说明 Note: If you are already using a library like RxJava or Agera, you can continue using them instead of LiveData. But when you use them or other approaches, make...
@alittlecup 你这个只用了LiveData吧,如果真是rxjava,switchMap用map之类就可以转换了,MVVM一般还要加一个Navigator,还是参考这个吧[tivi](https://github.com/chrisbanes/tivi),不过感觉也不是很标准,官方给的那个框架使用上感觉也不是特别好
所以说不是很标准啊,RxJava用在Model是错误的
如果用rxjava,也用LiveData,我觉得LiveData只用于ObservableField或ObservableBoolean之类的变化监听
MVP不做出模板的话,是不好用的
[Moxy](https://github.com/Arello-Mobile/Moxy) 参考这个的moxy-templates