I\'m using Android Studio for the first time and can\'t manage to make the ActionBar
show when I run the app. Here\'s what I have so far:
My Activity Ma
you must call you actionBar almost similar to how you would inflate a view and remember to use tool bar
Toolbar toolbar = (Toolbar)this.findViewById(R.id.action_bar);
if(toolbar!=null){
}
//getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setDisplayUseLogoEnabled(true);
getSupportActionBar().setLogo(R.drawable.ic__actionbar);
// Set up the action bar.
final ActionBar actionBar = getSupportActionBar();
if (showTabs) actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
// Create the adapter that will return a fragment for each of the three
// primary sections of the activity.