本文整理汇总了Java中de.mrapp.android.util.ThemeUtil.getBoolean方法的典型用法代码示例。如果您正苦于以下问题:Java ThemeUtil.getBoolean方法的具体用法?Java ThemeUtil.getBoolean怎么用?Java ThemeUtil.getBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.mrapp.android.util.ThemeUtil
的用法示例。
在下文中一共展示了ThemeUtil.getBoolean方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: obtainShowRestoreDefaultsButton
import de.mrapp.android.util.ThemeUtil; //导入方法依赖的package包/类
/**
* 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);
}
示例2: obtainUseSplitScreen
import de.mrapp.android.util.ThemeUtil; //导入方法依赖的package包/类
/**
* 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);
}
示例3: obtainNavigationVisibility
import de.mrapp.android.util.ThemeUtil; //导入方法依赖的package包/类
/**
* 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);
}
示例4: obtainOverrideNavigationIcon
import de.mrapp.android.util.ThemeUtil; //导入方法依赖的package包/类
/**
* 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);
}
示例5: obtainShowButtonBar
import de.mrapp.android.util.ThemeUtil; //导入方法依赖的package包/类
/**
* 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);
}
示例6: obtainShowProgress
import de.mrapp.android.util.ThemeUtil; //导入方法依赖的package包/类
/**
* 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);
}
示例7: obtainBreadCrumbVisibility
import de.mrapp.android.util.ThemeUtil; //导入方法依赖的package包/类
/**
* 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);
}