美文网首页
View设置不能触摸(不响应触摸事件)

View设置不能触摸(不响应触摸事件)

作者: 陈楚炼 | 来源:发表于2017-08-03 17:19 被阅读3次
     mPeriscopeLayout.setOnTouchListener(new View.OnTouchListener() {
                @Override
                public boolean onTouch(View v, MotionEvent event) {
                    return true;//返回true让触摸失效
                }
            });
    

    相关文章

      网友评论

          本文标题:View设置不能触摸(不响应触摸事件)

          本文链接:https://www.haomeiwen.com/subject/ezwplxtx.html