📜  使布局不可点击的android - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:35.951000             🧑  作者: Mango

代码示例1
YOUR_RELATIVE_LAYOUT.setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        // ignore all touch events
        return true;
    }
});