onItemLongClickListener
I like this library. I was wondering though, is there a way to set onItemLongClickListener on ListView with expandable items?
I tried mListView.setOnItemLongClickListener(myOnItemLongClickListener);
but long clicks are not registered
I have this issue too.
The point is android:longClickable="true" and
android:descendantFocusability="blocksDescendants"
<com.silencedut.expandablelayout.ExpandableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/expandable_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:longClickable="true" android:descendantFocusability="blocksDescendants" app:expWithParentScroll="true"> ... </com.silencedut.expandablelayout.ExpandableLayout>