GithubHelp home page GithubHelp logo

databinding's Introduction

Easy Data Binding Sample

I ❤️ how Data Binding works, and this project shows you the simplest way for doing it. 

🌈 Under the hood when we use find view by ID to get a reference to views every time we search for a view in this way after it has been created or recreated Android has to traverse the view hierarchy to find it for us at RunTime. For a large or deep view hierarchy this can take enough time that it can slow down the app for the user.

🏆 To fix this there is a technique and pattern called data binding that allows us to connect a layout to an activity or fragment. at CompileTime the compiler generates a helper class called a binding class when the activity is created so it is an instance of that binding class and then we can access the view through this generated binding class without any extra overhead.


🍻 You can access to the full document on Medium by this link:

https://link.medium.com/u3CE2oYte4

⚡️⚡️ Enjoy :)

databinding's People

Contributors

dranoer avatar

Stargazers

 avatar  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.