Android scrollview嵌套listview 滑动事件冲突的解决方法

添加listview监听

listView.setOnTouchListener(new View.OnTouchListener() {  

            @Override  
            public boolean onTouch(View v, MotionEvent event) {  
                if(event.getAction() == MotionEvent.ACTION_UP){  
                    scrollView.requestDisallowInterceptTouchEvent(false);  
                }else{  
                    scrollView.requestDisallowInterceptTouchEvent(true);  
                }  
                return false;  
            }  
        });  

你可能感兴趣的:(android)