What you can is the following. Let's call someMethod
the protected method where you set drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
in the BaseActivity
. Now, in some of the custom activities, call in the onCreate
method someMethod
where
protected void someMethod(){
super.someMethod();
}