Example usage for android.view Window setUiOptions

List of usage examples for android.view Window setUiOptions

Introduction

In this page you can find the example usage for android.view Window setUiOptions.

Prototype

public void setUiOptions(int uiOptions) 

Source Link

Document

Set extra options that will influence the UI for this window.

Usage

From source file:Main.java

@TargetApi(14)
public static void setUiOptions(Window window, int uiOptions) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
        window.setUiOptions(uiOptions);
    }//ww w. j  a v  a  2 s.  com
}

From source file:de.vanita5.twittnuker.activity.support.LinkHandlerActivity.java

private void setUiOptions(final Window window, final Uri data) {
    if (FlymeUtils.hasSmartBar()) {
        window.setUiOptions(ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW);
    } else {/*from   w ww . j  a v  a  2s  . c  o  m*/
        window.setUiOptions(0);
    }
}

From source file:nl.mpcjanssen.simpletask.TodoApplication.java

public void setActionBarStyle(@NotNull Window window) {
    if (getPrefs().getBoolean(getString(R.string.split_actionbar_key), true)) {
        window.setUiOptions(ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW);
    }//ww  w .  j a  v a 2s . co  m
}

From source file:de.vanita5.twittnuker.activity.support.HomeActivity.java

private void setUiOptions(final Window window) {
    if (FlymeUtils.hasSmartBar()) {
        if (mBottomComposeButton) {
            window.setUiOptions(ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW);
        } else {//from  www  .j a v  a  2 s.c  om
            window.setUiOptions(0);
        }
    }
}