Android MVC Framework -


i know if know android framework conventional applications. example, framework rails can see mvc pattern.

see answer here overview of android's limitations, give idea of why mvc pattern on android has not yet emerged: http://www.quora.com/is-there-any-standard-mvc-framework-in-android-application-development-if-not-is-it-worth-developing-one

after having posted answer have gone ahead , built fully-featured app using single-activity architecture. allowed past major ux limitations mentioned while being able have arbitrary complexity in controller hierarchies (parents children sub-children etc.). overall worked out great, have build out specialized components (ie: custom stack mechanism) store/restore state in way plays nicely android's own activity/fragment lifecycle patterns. there limitations around fragment animations had pull our hair out @ times, required more custom component workarounds. ie: animations show both outgoing , incoming fragment on-screen @ same time aren't supported on android, have resort taking screenshots of views , placing them temporary imageviews create appearance of transitions show 2 fragments @ same time. in end it's possible, have ready work around annoying android limitations while keeping overall mvc architecture intact.

in summary: make top-level component activity responsible top-level navigation (tab-based, menu-based, etc., stack , state preservation). top-level component should not govern particular screen of app, instead manages controllers every top-level screen. controllers fragments, , can contain sub-controllers fragments. screen transitions performed using fragment transactions opposed intents/activities. passing around data between fragments point of contention android supports data-passing through activity (ie: fragment uses parent activity). in architecture have need have fragments passing data each other (either parent/child or sibling-sibling relationships).

i don't have wrapped framework or anything, if dev/arch team sufficiently proficient architecture worthwhile shooting for. come out app not subject traditional ux limitations of android... few android apps can they've achieved. also... feels awesome showing can achieve same level of ux ios apps have years. it's time isn't it??


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -