Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onItemLongClickListener #17

Open
cetonek opened this issue Jun 11, 2017 · 2 comments
Open

onItemLongClickListener #17

cetonek opened this issue Jun 11, 2017 · 2 comments

Comments

@cetonek
Copy link

cetonek commented Jun 11, 2017

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

@askdaddy
Copy link

askdaddy commented Aug 3, 2017

I have this issue too.

@askdaddy
Copy link

askdaddy commented Aug 3, 2017

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants