Giter VIP home page Giter VIP logo

design_pattern_study's Introduction

Design_Pattern_Study

Created the project to learn and experiment different Android Design Pattern

The Application is just showing one page with Button and TextView. On Click of Button it will fetch the data from Model and show it on TextView

I have tried to implement using 3 design pattern in branches.

1.MVC(Branch: master) : In Android, what we doing earlier, most of the View and Controller part is implemented in Activity or Fragment class. Model will be only independent module which can be tested without android components.

2.MVP(Branch: sample_mvp) : Here I created the contract interface which covers the all the possible view and "controller" behavior which is implemented in View(Activity) and Presenter class. Here Presenter is responsible updating view.

3.MVVM(Branch: sample_mvvm): Maintaining view reference in Presenter is overhead and challenge here is view should update data dynamically. ViewModel is the solution for this, data from ViewModel is subscribed by views.

This study is inspired by https://www.youtube.com/watch?v=QrbhPcbZv0I&t=

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.