You can use a lambda expressions and pass the view in as a parameter. android:onClick="@{() -> callback.onCategoryClick(viewModel)}" If you need the view, ...
確定! 回上一頁