Closed klaw23 closed 10 years ago
The following code worked with Google Support v4. After upgrading to Google Support v7, setContentView(...) doesn't seem to work and drawerLayout is null. Passing MenuDrawer.MENU_DRAG_WINDOW to attach(...) works fine.
setContentView(...)
drawerLayout
null
MenuDrawer.MENU_DRAG_WINDOW
attach(...)
// In onCreate mDrawer = MenuDrawer.attach(this, Position.RIGHT); mDrawer.setContentView(R.layout.activity_main); mDrawer.setMenuView(R.layout.online_tutors_container); mDrawer.setTouchMode(MenuDrawer.TOUCH_MODE_FULLSCREEN); DrawerLayout drawerLayout = findViewById(R.id.drawer_layout);
Nevermind. Somehow in adding Google Support v7 we stopped calling findViewById(...) on mDrawer.
findViewById(...)
mDrawer
The following code worked with Google Support v4. After upgrading to Google Support v7,
setContentView(...)
doesn't seem to work anddrawerLayout
isnull
. PassingMenuDrawer.MENU_DRAG_WINDOW
toattach(...)
works fine.