Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/224.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何诱导本机ListView滚动[android]_Android_Listview_Android Listview_Scroll - Fatal编程技术网

如何诱导本机ListView滚动[android]

如何诱导本机ListView滚动[android],android,listview,android-listview,scroll,Android,Listview,Android Listview,Scroll,在父视图中重写了onInterceptTouchEvent后,我的列表视图出现问题。列表视图不会滚动 我尝试将MotionEvent分派到ListView中,但似乎没有以任何方式处理它 boolean done = mListView.dispatchTouchEvent(event); Log.d("listView dispatch", String.valueOf(done)); done始终为真,因此我猜事件接收正确 我还尝试过按偏移量和位置滚动列表视图,但这产生了一种非常人为的体验

在父视图中重写了onInterceptTouchEvent后,我的
列表视图出现问题。
列表视图不会滚动

我尝试将
MotionEvent
分派到
ListView
中,但似乎没有以任何方式处理它

boolean done = mListView.dispatchTouchEvent(event);
Log.d("listView dispatch", String.valueOf(done));
done
始终为真,因此我猜事件接收正确

我还尝试过按偏移量和位置滚动
列表视图
,但这产生了一种非常人为的体验

有没有办法让我的
列表视图以默认方式滚动