How can I check if translucent navigation is available ?
I am currently setting it to translucent with:
if (Build.VERSION.SDK_INT >= Build.VERSI
On KitKat devices, translucent system bars can be disabled with a framework boolean configuration resource. You can inspect the value of that resource at runtime.
int id = getResources().getIdentifier("config_enableTranslucentDecor", "bool", "android");
if (id == 0) {
// not on KitKat
} else {
boolean enabled = getResources().getBoolean(id);
// enabled = are translucent bars supported on this device
}