Is it possible to pass a String parameter on a button click of XML file to the methods of the view model file as like below
android:onClick="@{v -> viewModel.postFeedRequest(@string/show_details)}"
I tried like above i am getting binding error.
Can anyone post any example on this.