Git Product home page Git Product logo

mvvm_practice's Introduction

MVVM_practice

Android Architecture Component(AAC) - ViewModel + LiveData + DataBinding
안드로이드 컴퍼넌트를 이용하여 MVVM 디자인패턴을 연습 해 보는 레포지토리

목적

  • 액티비티.프레그먼트의 LifeCycle 관리를 쉽게 할 수 있음. -> 관리가 힘들고 메모리 누수 발생가능 하다는 단점 보완
  • UI 에 데이터를 뿌려줌

라이브데이터

  • 데이터가 변경 되었을 때, noti를 받아 UI를 자동으로 갱신 할 수 있도록 함. (데이터바인딩에서 옵져버블 필드를 만들어 사용 할 수도 있지만 어려움..)
  • 라이브데이터를 쓰면 관찰 가능한 데이터로 만들 수 있음
    • 뮤터블라이브데이터 => 수정이 가능한 경우
    • 라이브데이터 => 데이터를 set할 필요가 없을 경우

뷰모델

  • UI에 관계가 있는 데이터를 저장하는 용도
  • 뷰모델은 액티비티가 소멸 될 때 생명주기 소멸된다는 특징이 있음!

Room

  • sqlLigjht를 대체하는 내부디비.

mvvm_practice's People

Contributors

seunghee63 avatar

Watchers

 avatar  avatar

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.