当前位置: 首页>>代码示例>>Java>>正文


Java ThemeUtil.getBoolean方法代码示例

本文整理汇总了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);
}
 
开发者ID:michael-rapp,项目名称:AndroidPreferenceActivity,代码行数:9,代码来源:PreferenceFragment.java

示例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);
}
 
开发者ID:michael-rapp,项目名称:AndroidPreferenceActivity,代码行数:9,代码来源:PreferenceActivity.java

示例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);
}
 
开发者ID:michael-rapp,项目名称:AndroidPreferenceActivity,代码行数:8,代码来源:PreferenceActivity.java

示例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);
}
 
开发者ID:michael-rapp,项目名称:AndroidPreferenceActivity,代码行数:10,代码来源:PreferenceActivity.java

示例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);
}
 
开发者ID:michael-rapp,项目名称:AndroidPreferenceActivity,代码行数:8,代码来源:PreferenceActivity.java

示例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);
}
 
开发者ID:michael-rapp,项目名称:AndroidPreferenceActivity,代码行数:9,代码来源:PreferenceActivity.java

示例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);
}
 
开发者ID:michael-rapp,项目名称:AndroidPreferenceActivity,代码行数:9,代码来源:PreferenceActivity.java


注:本文中的de.mrapp.android.util.ThemeUtil.getBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。