Pls reply...It's urgent and if possible.....pls give some....idea on code...
If you need anything throughout the application ,u should declare in manifest file.
Or if you want you can use inheritance to avoid the duplicate code.
public BaseActivity extends Activity {
//code for navigation drawer
}
public class MyActivity1 extends BaseActivity {
}
public class MyActivity2 extends BaseActivity {
}
Source Here
what about xml....Is it require to declare drawerlayout also everywhere or only in BaseActivity???
Had you tried it ?
I don't think we need to declare drawerlayout everywhere.
Yes..but not working....