I have implemented ViewPager with use of android Data Binding, it is working perfect with data and click events.
ViewPager
I have created interface f
interface
You can pass parameters in the lambda expression, like this:
android:onClick="@{() -> handler.onItemClick(rootItemView.getTag().toString())}"
And of course you'll need to edit your interface method and its implementations:
public void onItemClick(String data);