怎样禁止下拉刷新?

qq_27152813 2016-08-17 08:35:47
像微信首页就不能下拉,通讯录一页能下拉。怎样像首页似的,禁止下拉?
...全文
1111 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
agoodcoolman 2018-10-18
  • 打赏
  • 举报
回复
$(window).scroll(function() { if ($(document).scrollTop() >= 1) { $("html").css({ "touch-action": "auto"} ); } else { $("html").css({ "touch-action": "pan-down" }); } }); https://stackoverflow.com/questions/29008194/disabling-androids-chrome-pull-down-to-refresh-feature/29302816#answer-42535170
peter_nj_RD 2016-08-19
  • 打赏
  • 举报
回复
每个fragment分开写,需要有下拉刷新的就把控件加上去就行了
xlyhr007 2016-08-19
  • 打赏
  • 举报
回复
你不用ptr不就可以了,直接用原生的listview或scrollview
Stanny_Bing 2016-08-18
  • 打赏
  • 举报
回复
用的pulltorefreshlistview?pullToRefreshScrollView.setPullToRefreshEnabled(false);
LoveWyf_ 2016-08-18
  • 打赏
  • 举报
回复
pulltorefreshlistview可以设置模式来是否需要下拉上拉的
lucers 2016-08-18
  • 打赏
  • 举报
回复
你想怎么禁止下拉刷新?在应用界面实现一个按钮点击后使下拉刷新的功能失效?

80,337

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧