Navigation drawer - Disable click through on items behind the drawer

前端 未结 6 2228
旧时难觅i
旧时难觅i 2021-02-06 20:34

Is there any way to make sure that the navigation drawer stays on top of the content in the fragment?

I created a small test application with dummy data. 10 fragments w

6条回答
  •  故里飘歌
    2021-02-06 21:03

    In my fragment drawer, I set TouchListener to return True. It worked for me

            mFragmentContainerView.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                return true;
            }
        });
    

提交回复
热议问题