Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@null4n
Created January 29, 2019 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save null4n/dd52b2890b60ddbb315de158cc72ef5e to your computer and use it in GitHub Desktop.
Save null4n/dd52b2890b60ddbb315de158cc72ef5e to your computer and use it in GitHub Desktop.
Get framework boolean of navigation bar
import android.content.res.Resources;
public class Navigation {
public static void main(String[] args) {
int id = Resources.getSystem().getIdentifier("config_showNavigationBar","bool", "android");
String result = String.valueOf(Resources.getSystem().getBoolean(id));
System.out.print(result + "\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment