Android Data Binding Library edit

Built-in two-way Data Binding

Two-way Data-Binding supports the following attributes:

Element | Properties –––––––– | –––––––––– AbsListView | android:selectedItemPosition CalendarView | android:date CompoundButton | android:checked DatePicker | android:yearandroid:monthandroid:day EditText | android:text NumberPicker | android:value RadioGroup | android:checkedButton RatingBar | android:rating SeekBar | android:progress TabHost | android:currentTab TextView | android:text TimePicker | android:hourandroid:minute ToggleButton | android:checked Switch | android:checked

Usage

<layout ...>
    <data>
        <variable type="com.example.myapp.User" name="user"/>
    </data>
    <RelativeLayout ...>
        <EditText android:text="@={user.firstName}" .../>
    </RelativeLayout>
</layout>

Notice that the Binding expression @={} has an additional =, which is necessary for the two-way Binding. It is not possible to use methods in two-way Binding expressions.


Table Of Contents
10 Data Binding Library
39 ACRA
64 Menu
112 Loader
119 Xposed
132 Colors
135 Fresco
140 AdMob
147 Button
156 Vk SDK
170 XMPP
176 OpenCV
200 FileIO
203 Moshi
217 Paint
231 AIDL
241 JCodec
243 Okio
255 Looper
  ↑ ↓ to navigate     ↵ to select     Esc to close