set View Software Layer Type - Android User Interface

Android examples for User Interface:View Layer

Description

set View Software Layer Type

Demo Code


//package com.java2s;
import android.annotation.TargetApi;
import android.view.View;

public class Main {
    @TargetApi(11)/*from   w  w  w . ja  va 2 s  . c  o m*/
    public static void setSoftwareLayerType(View view) {
        view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    }
}

Related Tutorials