Skip to content

Tag: data-binding

how to clean up generated data binding files?

I’ve got a problem I created the activity and xml files in a git branch. Commit these tasks, and change the branch to do something else. However, when build app, the following error occurred. ActivityDebugUserInfo is the file I created in the previous branch. There is no such file in the current branch.…

Android Data Binding pass arguments to onClick method

Is it possible to pass custom arguments to onClick method using the Data Binding Library? I have my layout xml file where I need to use the onClickListener: and I a have my click handler code here: Is it possible to pass my CategoryViewModel object from xml to click handler? Answer You can use a lambda expres…