DrawerLayout not working with Android 4.4 & SurfaceView

前端 未结 1 982
小蘑菇
小蘑菇 2021-01-14 18:30

Today I had one of those \"android\" moments again, which left me absolutely clueless.

I have an app which consists of a DrawerLayout, which includes a RelativeLayou

相关标签:
1条回答
  • 2021-01-14 19:15

    Have you tried using implementing onDrawerSlide on the drawerListener of the drawerLayour like this

    @Override
        public void onDrawerSlide(View drawerView, float slideOffset)
        {
            super.onDrawerSlide(drawerView, slideOffset);
            mDrawerLayout.bringChildToFront(drawerView);
            mDrawerLayout.requestLayout();
        }
    
    0 讨论(0)
提交回复
热议问题