Never put your business logic in Activitys.Īn Activity will talk to a ViewModel and a ViewModel will talk to the domain layer to perform actions. An Activity should be as dumb as possible. This includes our Activitys, Fragments, and ViewModels. You are free to choose whatever project structure suits you. I like to group project files based on features. ![]() It adds a lot of extra classes, so it’s not ideal for low-complexity projects.Įven within the Android app architecture we’re using, there are many ways to structure your file/folder hierarchy.How all the layers work together may take some time to understand, especially if you are coming from patterns like simple MVVM or MVP. It has a slightly steep learning curve. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |