Skip to content

Instantly share code, notes, and snippets.

@chetdeva
Last active August 2, 2017 06:21
Show Gist options
  • Save chetdeva/6f316c7f3ecfd08b73292ab94b58d5bb to your computer and use it in GitHub Desktop.
Save chetdeva/6f316c7f3ecfd08b73292ab94b58d5bb to your computer and use it in GitHub Desktop.
<android.support.v7.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
bind:dragEnabled="@{true}"
bind:onItemDrag="@{(indexFrom, indexTo) -> handler.onItemDragged(indexFrom, indexTo)}"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment