Open coderkisoo opened 8 years ago
you could do this
Set this on the view you want to be clickable
android:onClick="firstNameClickHandler"
android:tag="@{user}" // the viewmodel variable
and then in your activity
public void firstNameClickHandler(View v) {
UserViewModel userViewModel = (UserViewModel)v.getTag();
}
I want to click the inner view,and I try to change the moduel.finally i failed.