首页 > 其他 > 详细

使用开源的PullToRefreshScrollView scrollTo和scrollby遇到的问题

时间:2016-02-11 19:13:14      阅读:2009      评论:0      收藏:0      [点我收藏+]

在项目中使用了开源的com.handmark.pulltorefresh.library 下拉刷新组件,当中使用了PullToRefreshScrollView ,须要调用scrollTo或者scrollBy滑动到指定的位置。

直接使用PullToRefreshScrollView .scrollTo方法发现会有bug,查了下代码发现是view的方法。

调用

scrollView = pullScrollView.getRefreshableView();
就会得到PullToRefreshScrollView 封装的scrollView之后再调用scrollTo就没出现故障了。

使用开源的PullToRefreshScrollView scrollTo和scrollby遇到的问题

原文:http://www.cnblogs.com/mengfanrong/p/5186570.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!