Add compatibility for Veiw#setLayerType(int, Paint)