Actually you can put a scrollable view (e.g. your ListView) inside another scrollable view (e.g. your ExpandableListView) and make the former scrollable in the following way:listView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { // disallow the onTouch for your scrollable parent view v.getParent().requestDisallowInterceptTouchEvent(true); return false; }}); 这篇关于ListView可以在ExpandableListView内部吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-02 23:11