Code example for View

Methods: setLayerType

0
 
@TargetApi(11) 
public class SDK11 { 
 
	public static void disableHardwareAcceleration(View view) {
		view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
	} 
 
	public static boolean isCanvasHardwareAccelerated(Canvas canvas) {
		return canvas.isHardwareAccelerated();
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java