DataBindingAdapter icon indicating copy to clipboard operation
DataBindingAdapter copied to clipboard

How i use long click in xml?

Open iceuncle opened this issue 7 years ago • 2 comments

only with Decorator?

iceuncle avatar Mar 18 '17 05:03 iceuncle

not related with this library, but a data binding question I think.

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:onClick="@{() -> presenter.onItemClick(item)}"
    android:onLongClick="@{() -> presenter.onItemLongClick(item)}"
    android:weightSum="4"
    android:padding="15dp">

markzhai avatar Mar 21 '17 02:03 markzhai

@markzhai It doesn't work, because "Unknown attribute android:onLongClick"

AndreyMolochko avatar May 22 '20 10:05 AndreyMolochko