GithubHelp home page GithubHelp logo

zokran / android-data-binding-2-way-communication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rohankandwal/android-data-binding-2-way-communication

0.0 1.0 0.0 264 KB

This is an example of Android's new Data Binding Library showing how to have a two way communiction. Normally, Data BInding only works from the Object to layout and not Vice-Versa. Eg- If two EditTexts are bind to the same class object, updating object's value from one EditText should automatically show updated value in second EditText. But this doesn't happens, the values in EditText are only updated when using a "set" method. Further changes to the class's object are not reflected in the layout. However, if we use two way binding, then changes made in one EditText will automatically be updated in second EditText, since they are both using same object.

License: GNU General Public License v2.0

Java 100.00%

android-data-binding-2-way-communication's Introduction

Android Marshmallow 6.0 Data Binding with two way communication

This is an example of Android's new Data Binding Library showing how to have a two way communiction. Normally, Data BInding only works from the Object to layout and not Vice-Versa. Eg- If two EditTexts are bind to the same class object, updating object's value from one EditText should automatically show updated value in second EditText. But this doesn't happens, the values in EditText are only updated when using a "set" method. Further changes to the class's object are not reflected in the layout. However, if we use two way binding, then changes made in one EditText will automatically be updated in second EditText, since they are both using same object.

Alt text

See an example on Android Marshmallow 6.0 Data Binding with RecycleView @ https://github.com/rohankandwal/Marshmallow-Databinding-w-RecyclerView

Login form w/ validation through data binding https://github.com/rohankandwal/LoginFormW-DataBinding

android-data-binding-2-way-communication's People

Contributors

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