像微信首页就不能下拉,通讯录一页能下拉。怎样像首页似的,禁止下拉?

解决方案 »

  1.   

    pulltorefreshlistview可以设置模式来是否需要下拉上拉的
      

  2.   

    用的pulltorefreshlistview?pullToRefreshScrollView.setPullToRefreshEnabled(false);
      

  3.   

    每个fragment分开写,需要有下拉刷新的就把控件加上去就行了
      

  4.   

    你不用ptr不就可以了,直接用原生的listview或scrollview
      

  5.   

    $(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