Answer the question
In order to leave comments, you need to log in
What is adapter in terms of mvc?
Good day.
Previously, I didn’t really bother, but now I’m thinking where to put the adapter from the mvc point of view?
So far I've used the following project structure:
+model\
|----------\data (data models)
|----------\database (helper and provider)
|-- --------\operation (network and database operations)
+ui\ (activty, fragments ...)
+util\
|----\adapters (adapters)
|----\.. ......
the question is not how to implement it, the question is kosher ─ how best to organize the code
Answer the question
In order to leave comments, you need to log in
MVC is a good thing, but don't try to fit everything into it. MVC simply dictates that three different entities should be involved in storing data, displaying it, and responding to user input, it's just a pattern. The adapter is exactly the same full-fledged pattern, although less spreading.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question