boolean hasNav = mContext.getResources() .getBoolean(com.android.internal.R.bool.config_showNavigationBar);