Skip to content

wwyeong/android-two-way-data-binding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Two-Way Data Binding

Easy example showing how to create TwoWay Data Binding using Android Data Binding Library.

<data>
    <variable
        name="viewModel"
        type="net.droidlabs.twowaydatabinding.ViewModel"/>
</data>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>

    <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:binding="@{viewModel.someText}"/>


    <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:binding="@{viewModel.someText}"
        />


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@{viewModel.someText}"
        />
</LinearLayout>

two_way_data_binding

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%