Java Code Examples for android.view.Window#setUiOptions()

The following examples show how to use android.view.Window#setUiOptions() . 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: MethodsCompat.java    From PreferenceFragment with Apache License 2.0 4 votes vote down vote up
@TargetApi(14)
public static void setUiOptions(Window window, int uiOptions) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
        window.setUiOptions(uiOptions);
    }
}
 
Example 2
Source File: MethodsCompat.java    From wakao-app with MIT License 4 votes vote down vote up
@TargetApi(14)
public static void setUiOptions(Window window, int uiOptions) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
        window.setUiOptions(uiOptions);
    }
}