Created
May 7, 2017 16:37
-
-
Save andersonkxiass/7af500a4c48f42f5f6eb9bd0819f04a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <layout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto"> | |
| <data> | |
| <variable | |
| name="vm" | |
| type="your.package.RecyclerViewWithClickVM" /> | |
| </data> | |
| <your.package.RecyclerViewWithClick | |
| android:id="@+id/recycler_view" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| app:OnItemClickListener="@{(recyclerView, position, v)->action.onItemClicked(recyclerView, position, v)}" | |
| app:adapter="@{vm.objectList}" | |
| app:layoutManager="@{vm.getLayoutManager()}" /> | |
| </layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment