我有一个简单的列表视图:
<?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:choiceMode="singleChoice"
android:overScrollMode="never"
android:layout_width="match_parent" android:layout_height="match_parent" />
此列表视图是 AdapterView 的一部分。
在我的代码中,我调用listView.scrollBy(deltaX,deltaY)
. 这会导致列表视图过度滚动。如果我使用相同的代码不会导致过度滚动ScrollView
。
为什么???