Skip to content

Instantly share code, notes, and snippets.

@jkhosla
Created September 28, 2016 11:47
Show Gist options
  • Save jkhosla/0acf733057098999b5bf79f395d2a102 to your computer and use it in GitHub Desktop.
Save jkhosla/0acf733057098999b5bf79f395d2a102 to your computer and use it in GitHub Desktop.
Hiding / Showing the Action Bar in Particular Activity
// This is kind of tricky.
// To do this programitacally and for minSDKVersion 16
// Import statement -
import android.support.v7.app.ActionBar;
//Usage
void onCreate {
ActionBar actionBar = getSupportActionBar();
actionBar.hide();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment