liangfeidotme / MasteringAndroidDataBinding

A comprehensive tutorial for Android Data Binding
http://liangfei.me
MIT License
2.59k stars 496 forks source link

Use Data binding in library #33

Open patelakshay13890 opened 8 years ago

patelakshay13890 commented 8 years ago

Hey developers, How can I use data binding in my application because I am new to data binding concept ? I have an application module and one android lib. Module which has all the entites those are used in app module l.. So how can I use data binding in my app with lib. Module.. Which also include dynamic inflation of view based on parameter in some of the entities in library module 

chowaikong commented 8 years ago

Go through this demo and you will know how.

patelakshay13890 commented 8 years ago

I am not able to use BaseObservable class from Data binding library in my android library module although I can use @Bindable anonation in my entity's field but for that field I can't use notifyProperty() method also l.. So what could be the solution for that ?