ExpandableLayout icon indicating copy to clipboard operation
ExpandableLayout copied to clipboard

onItemLongClickListener

Open cetonek opened this issue 8 years ago • 2 comments

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

cetonek avatar Jun 11 '17 23:06 cetonek

I have this issue too.

askdaddy avatar Aug 03 '17 03:08 askdaddy

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>

askdaddy avatar Aug 03 '17 03:08 askdaddy