删除SwipeRefreshLayout中的加载微调器 [英] Remove loading spinner in SwipeRefreshLayout

查看:299
本文介绍了删除SwipeRefreshLayout中的加载微调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用SwipeRefreshLayout重新加载列表视图的内容. 它可以正常工作,并且会触发onRefreshListener,但是在加载完成后,不想在onswipe上显示的小型加载微调框将其关闭. 有办法实现吗?

I use a SwipeRefreshLayout to reload the content of a listview. It works and the onRefreshListener is triggered but the small loading spinner that appears onswipe doesn't want to dismiss after the loading is complete. Is there a way to make it go ?

固定的SwipeView表示SwipeRefreshLayout

Edit : fixed SwipeView means SwipeRefreshLayout

推荐答案

您是说SwipeRefreshLayout吗?如果是这样,请使用SwipeRefreshLayout.setRefreshing(false)

Do you mean SwipeRefreshLayout? if so use SwipeRefreshLayout.setRefreshing(false)

这篇关于删除SwipeRefreshLayout中的加载微调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆