-1

I'm looking to create a basic architecture of Android app boilerplate with (Login, SignUp, Other features that every app has). After lot of research I found that going with MVP is going to be best choice.

However I'm not getting the right way to implement MVP. I'm a beginner with this.

If someone can guide me with the right sources, it will be of great help.

4

2 回答 2

3

Refer the Architecture guides from Google:

https://developer.android.com/topic/libraries/architecture/guide.html

https://github.com/googlesamples/android-architecture

MVP sample from Google: https://github.com/googlesamples/android-architecture/tree/todo-mvp/

于 2017-08-06T08:44:58.720 回答
0

我似乎没有找到非常简单的“HELLO WORLD”示例,所以我自己创建了一个。克隆此示例并尝试将其用作模板或对您的项目的引用。

  • mvp-simple-hello-world 分支是从编辑文本中提取 toast 的最基本示例。

  • master 分支(仍在处理和添加)是一个更扩展的小方法示例,它执行随机操作:从编辑文本、更改背景颜色和 API 调用获取天气信息并将其显示在屏幕上。*对于 Accuweather API 调用,您需要注册到https://developer.accuweather.com/ -->“我的应用程序”选项卡 --> 创建一个新应用程序。然后将 API_KEY 添加到“常量”类。

Github 仓库:https ://github.com/ayalus/MvpHelloWorld/tree/mvp-simple-hello-world

于 2017-08-08T20:14:44.740 回答