问题描述
是否有关于如何最好地构建Android应用程序的好示例或教程?
Am Java和Android的新手,并且我使用了ASP.NET中的模型视图和模型视图控制器的被动和监督控制器变体构建了Winforms应用.
人们如何在野外构建体面的Android应用.是否有最佳实践,或者我应该严格地坚持官方的Android文档.
推荐答案
尝试以下两个示例.我发现它们在了解MVP如何应用于Android应用程序中很有用.
http:http://http://web.archive.org/web/20120524010643/http://chicagoandroid.com/forum/topics/mvp-android-perpective
//web.archive.org/web/20130525044856/http://jamespeckham.com/blog/10-11-21/mvp_on_android.aspx
其他推荐答案
也 Mosby 实现MVP图案加上其他东西,但它足够模块化,因此您只能使用MVP零件而忘记其余部分.
还有一篇不错的博客文章,涵盖了此 libraral
其他推荐答案
查看 android开发人员页面.在那里,您会找到所有问题的答案. MVC已经存在于Android中.查看这个问题.视频在这里可以解释您在寻找什么.
问题描述
are there any good examples or tutorials on how best to structure an android applications anywhere?
am new to java and android and i've built winforms apps using passive and supervising controller variants of model view presenter and model view controller in asp.net but not really seen any examples or code on android that use these sorts of patterns.
how do people structure decent size android apps out there in the wild. are there any best practices or should i be sticking rigidly to official android documentation.
推荐答案
Try with the following two examples. I've found them useful in understanding how MVP might apply to Android applications.
http://web.archive.org/web/20130525044856/http://jamespeckham.com/Blog/10-11-21/MVP_on_Android.aspx
其他推荐答案
Also Mosby implements an MVP pattern plus other things, but it is modular enough so that you can use only the MVP part and forget about the rest.
There is also a nice blog post covering the motivations and choices of this library
其他推荐答案
Check out the Android Developers page. There you will find the answers to all of your questions. And MVC is already present in Android. Check out this question. The videos here can explain what you're looking for.