Git Product home page Git Product logo

roomexample's Introduction

Room 을 사용하고싶은데 이해가 잘 안돼서 공식 사이트 문서 번역해보는 중...

RoomExample

  1. Room
  2. ViewModel
  3. LiveData

공부할 내용

  • 뷰모델은 Factory 를 이용하여 액티비티 위에서 생성한다. (왜?)
  • 뷰모델은 Activity, Fragment 의 수명주기를 따르며, 서로간에 데이터를 공유할 수 있다.
  • 뷰모델을 통해 데이터베이스로부터 데이터를 읽어들여 LiveData 에 담아 관리한다. 이때 find 메소드를 쓴다
  • LiveDataObserver 를 달아 데이터 변화를 관찰하며, 데이터가 변동될 때 UI 를 자동으로 변경할 수 있도록 한다.

roomexample's People

Contributors

onedelay avatar

Watchers

 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.