Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只是寻找一个我在谷歌上找不到的简单答案。简单的说。有没有办法判断 ScrollView 何时停止滚动?
是的,在投掷后它进入理想状态,这意味着你的投掷结束了。为此,您必须将侦听器放在列表视图中 Like list.setOnScrollListener(this)。然后你必须检查监听器是否处于理想状态。像这样
list.setOnScrollListener(this)
public void onScrollStateChanged(AbsListView view, int scrollState) { if(OnScrollListener.SCROLL_STATE_IDLE) { your code; } }