StrokeCap


@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
class StrokeCap


Defines the treatment applied to the beginning and end of drawn line segments or progress bar tracks. When drawing a path with a stroke, the cap type/style dictates whether the ends are rounded off, squared, etc. This class contains the allowed types of stroke caps.

Summary

Constants

const Int

The default stroke cap style defined by the system.

const Int
ROUND = 1

Begin and end contours with a semicircle extension.

const Int
SQUARE = 2

Begin and end contours with a half square extension.

Constants

DEFAULT

Added in 1.9.0-alpha02
const val DEFAULT = 0: Int

The default stroke cap style defined by the system.

ROUND

Added in 1.9.0-alpha02
const val ROUND = 1: Int

Begin and end contours with a semicircle extension.

SQUARE

Added in 1.9.0-alpha02
const val SQUARE = 2: Int

Begin and end contours with a half square extension.