简体   繁体   中英

Expandable ListView inside Scroll View

I tried to have an ExpandableListView inside a ScrollView but I doesn't work and after having done some search seems to be impossible. The problem is that I didn't come up with a solution. I need an expanded View inside a scroll View. Is there any other way to do it?

Thank you in advance,

You shouldn't need an ExpandableListView in a ScrollView. You should add the views above the ExpandableListView as Header to the ExpandableListView, and add the views below the ExpandableListView as Footer to the ExpandableListView. Then all of them can scroll together.

It would helps

    left_drawer.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View v, MotionEvent event) {
            v.getParent().requestDisallowInterceptTouchEvent(true);
            return false;
        }
    });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM