O
O
Oleg Gamega2014-07-06 10:20:36
Android
Oleg Gamega, 2014-07-06 10:20:36

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

2 answer(s)
K
Konstantin Kitmanov, 2014-07-06
@k12th

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.

A
Alexander, 2014-07-06
@itvdonsk

Basically, this is a model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question