android 有没有可以pulltorefresh的scrollview
1个回答
推荐于2016-11-28 · 知道合伙人数码行家
huanglenzhi
知道合伙人数码行家
向TA提问 私信TA
知道合伙人数码行家
采纳数:117538
获赞数:517192
长期从事计算机组装,维护,网络组建及管理。对计算机硬件、操作系统安装、典型网络设备具有详细认知。
向TA提问 私信TA
关注
展开全部
自己去重写了pulltorefresh的LoadingLayout方法,调用的时候把上拉或者下拉的状态当做参数传进去,在
case PULL_FROM_START:
default:
lp.gravity = scrollDirection == Orientation.VERTICAL ? Gravity.BOTTOM : Gravity.RIGHT;
if(ispull)//判断是上拉还是下拉
mPullLabel = context.getString(R.string.pull_to_refresh_pull_label);
else
mPullLabel = context.getString(R.string.pull_to_refresh_push_label);
mRefreshingLabel = context.getString(R.string.pull_to_refresh_refreshing_label);
mReleaseLabel = context.getString(R.string.pull_to_refresh_release_label);
break;
case PULL_FROM_START:
default:
lp.gravity = scrollDirection == Orientation.VERTICAL ? Gravity.BOTTOM : Gravity.RIGHT;
if(ispull)//判断是上拉还是下拉
mPullLabel = context.getString(R.string.pull_to_refresh_pull_label);
else
mPullLabel = context.getString(R.string.pull_to_refresh_push_label);
mRefreshingLabel = context.getString(R.string.pull_to_refresh_refreshing_label);
mReleaseLabel = context.getString(R.string.pull_to_refresh_release_label);
break;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询