Java Code Examples for de.mrapp.android.util.ThemeUtil#getBoolean()
The following examples show how to use
de.mrapp.android.util.ThemeUtil#getBoolean() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PreferenceFragment.java From AndroidPreferenceActivity with Apache License 2.0 | 4 votes |
/** * Obtains, whether the button, which allows to restore the preferences' default values, should * be shown, or not, from the activity's current theme. */ private void obtainShowRestoreDefaultsButton() { boolean show = ThemeUtil.getBoolean(getActivity(), R.attr.showRestoreDefaultsButton, false); showRestoreDefaultsButton(show); }
Example 2
Source File: PreferenceActivity.java From AndroidPreferenceActivity with Apache License 2.0 | 4 votes |
/** * Obtains, whether the split screen layout should be used on tablets, from the activities * theme. */ private void obtainUseSplitScreen() { boolean useSplitScreen = ThemeUtil.getBoolean(this, R.attr.useSplitScreen, true); useSplitScreen(useSplitScreen); }
Example 3
Source File: PreferenceActivity.java From AndroidPreferenceActivity with Apache License 2.0 | 4 votes |
/** * Obtains, whether the navigation should be shown, from the activity's theme. */ private void obtainNavigationVisibility() { boolean hideNavigation = ThemeUtil.getBoolean(this, R.attr.hideNavigation, false); hideNavigation(hideNavigation); }
Example 4
Source File: PreferenceActivity.java From AndroidPreferenceActivity with Apache License 2.0 | 4 votes |
/** * Obtains, whether the behavior of the navigation icon should be overridden, or not, from the * activity's theme. */ private void obtainOverrideNavigationIcon() { boolean overrideNavigationIcon = ThemeUtil.getBoolean(this, R.attr.overrideNavigationIcon, true); overrideNavigationIcon(overrideNavigationIcon); }
Example 5
Source File: PreferenceActivity.java From AndroidPreferenceActivity with Apache License 2.0 | 4 votes |
/** * Obtains, whether the activity should be used as a wizard, or not, from the activity's theme. */ private void obtainShowButtonBar() { boolean showButtonBar = ThemeUtil.getBoolean(this, R.attr.showButtonBar, false); showButtonBar(showButtonBar); }
Example 6
Source File: PreferenceActivity.java From AndroidPreferenceActivity with Apache License 2.0 | 4 votes |
/** * Obtains, whether the progress should be shown, when the activity is used as a wizard, or not, * from the activity's theme. */ private void obtainShowProgress() { boolean showProgress = ThemeUtil.getBoolean(this, R.attr.showProgress, true); showProgress(showProgress); }
Example 7
Source File: PreferenceActivity.java From AndroidPreferenceActivity with Apache License 2.0 | 4 votes |
/** * Obtains the visibility of the toolbar, which is used to show the breadcrumb of the currently * selected navigation preference, from the activity's theme. */ private void obtainBreadCrumbVisibility() { boolean hide = ThemeUtil.getBoolean(this, R.attr.hideBreadCrumb, false); hideBreadCrumb(hide); }