我有一个NestedScrollView,我想看看它正在滚动的天气。
nestedScrollView.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() {
@Override
public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {}
});
我在网上查过了,却找不到解决办法。
试过了:
NestedScrollView ns =(NestedScrollView) findViewById(R.id.nested_scroll);
ns.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() {
@Override
public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScroll
当尝试在不同的NestedScrollView内使用带有ListView的NestedScrollView时,颤振会引发堆栈溢出错误:
════════ Exception caught by widgets library ═══════════════════════════════════
The following StackOverflowError was thrown building PrimaryScrollController(no controller):
Stack Overflow
下面是发生这种情况的最低限度的代码:
import 'package:flut