Open GoogleCodeExporter opened 9 years ago
你好,问题我已经解决。
if (mAdapterView.getFirstVisiblePosition() == 0
&& Math.abs(top - padding) <= 11) {
mPullState = PULL_DOWN_STATE;
return true;
}
小米2这里会得出11。
Original comment by youzic...@gmail.com
on 18 Apr 2013 at 1:44
方便其他人查找位置再:
PullToRefreshView.java 这个文件中,
原来代码是:
if (mAdapterView.getFirstVisiblePosition() == 0
&& Math.abs(top - padding) <= 8) {
mPullState = PULL_DOWN_STATE;
return true;
}
楼上这位仁兄把 8 改成了 11,小米2 就ok 了!
感谢楼上这位仁兄(youzic...@gmail.com)!
Original comment by chuanb...@gmail.com
on 27 Apr 2013 at 9:34
即使是改成11,也有可能在其它手机上出现这个问题,是否应
该考虑通过View.getScrollY()==0来判断更合适些?
Original comment by crazy.bi...@gmail.com
on 14 Apr 2014 at 7:18
Original issue reported on code.google.com by
youzic...@gmail.com
on 16 Apr 2013 at 10:08