0
我有一個簡單的列表視圖:如何停止ListView中的超滾動?
<?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
代替,則相同的確切代碼不會導致過度滾動。
爲什麼?
爲什麼會(設定最高反彈時)是使用overScrollMode「從不」有什麼不同? – Yevgeniy