layerType

inline fun Style.layerType(layerType: Int, paint: Paint? = null): Style

Specifies the type of layer backing this view. The layer can be LayerType.LAYER_TYPE_NOT_SET, LayerType.LAYER_TYPE_NONE, LayerType.LAYER_TYPE_SOFTWARE or LayerType.LAYER_TYPE_HARDWARE.

Parameters

layerType
paint

The paint used to compose the layer. This argument is optional and can be null. It is ignored when the layer type is LayerType.LAYER_TYPE_NONE.

See also