Code example for View

Methods: setLayerType

0
    } 
 
    @TargetApi(11) 
    public static void setLayerType(View view, int layerType, Paint paint) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            view.setLayerType(layerType, paint);
        } 
    } 
 
    @TargetApi(14) 
    public static void setUiOptions(Window window, int uiOptions) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
            window.setUiOptions(uiOptions);
        } 
    } 
         
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE