转载请注明出处: http://www.cnblogs.com/cnwutianhao/p/6772759.html MVP架构模式 大家都不陌生,Google 也给出过相应的参考 Sample, 但是有的人会有疑问为啥 GitHub 上面大神写的 MVP ...
转载请注明出处: http://www.cnblogs.com/cnwutianhao/p/6772759.html
MVP架构模式 大家都不陌生,Google 也给出过相应的参考 Sample,
但是有的人会有疑问为啥 GitHub 上面大神写的 MVP架构模式 和 Google 的不太一样。
Google MVP架构模式 Sample 地址 https://github.com/googlesamples/android-architecture/tree/todo-mvp/
下面我们就仿照 Google 的 Sample 实现用户登录
项目结构:
示例演示图:
代码实现:
1.导入必要的开源库
示例项目采用 Material Design + Data-Binding + MVP
android { ... // Data Binding // https://developer.android.google.cn/topic/libraries/data-binding/index.html dataBinding { enabled true } }
原标题:用户登录(Material Design + Data
关键词:登录
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。