Previously, I didn’t really bother, but now I wondered: where to put the adapter in terms of mvc ? Until now, I used approximately the following project structure:

+ model \
| ----- \ data (data models)
| ----- \ database (helper and provider)
| ----- \ operation (network operations 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.

  • 2
    Controler? - Suvitruf
  • 2
    @Suvitruf: I liked your typo. - VladD
  • Your structure lacks the part responsible for the "C" (Controller). Adapters should be attributed to him ... @Suvitruf, I have been sitting for a minute and I laugh ... - Vladyslav Matviienko
  • @metalurgus yes, it came out funny) - Suvitruf
  • 2
    @Suvitruf, just don't fix it !! - Vladyslav Matviienko 5:53 pm

0