android model view presenter/controller examples [

2019-01-13 03:48发布

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.

4条回答
Summer. ? 凉城
2楼-- · 2019-01-13 03:54

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.

查看更多
疯言疯语
3楼-- · 2019-01-13 03:58

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

查看更多
4楼-- · 2019-01-13 04:11
Emotional °昔
5楼-- · 2019-01-13 04:13

I created an application to manage my expenses. It is built using MVP pattern. I have explained it in this post.

查看更多
登录 后发表回答