amrro / firestore-android-arch-components

Firestore sample with Android architecture component.
Apache License 2.0
107 stars 31 forks source link

where is DetailHandler implemented? #7

Closed krushnaal-pai closed 6 years ago

krushnaal-pai commented 6 years ago

This is not an issue. Its a question though. Let me know if I should remove this.

I would like to know that in "activity_restaurant_detail.xml" file, there are variables noReviews and handler. Where is noReviews set in .java file. Where is handler implemented? Which code gets executed when "@{(view) -> handler.addRating(true)}" gets called?

I found addRating methods but they dont have this signature addRating(boolean val).

Thanks.

amrro commented 6 years ago

Any Question are very welcomed @krushnaal-pai I am using data binding library to bind values to variables declared inside the xml files. You can read more about here.