lineSpec

fun lineSpec(context: Context, @AttrRes attrRes: Int = R.attr.line1Spec, @StyleRes styleResId: Int = 0): LineChart.LineSpec

Creates a LineChart.LineSpec using the provided attrRes and styleResId.

Parameters

context

the context used to retrieve the style information.

attrRes

a theme attribute resource identifier used to retrieve the LineChart.LineSpec’s style. This can be R.attr.line1Spec, R.attr.line2Spec, or R.attr.line3Spec.

styleResId

if not 0, used to retrieve the style information from the provided style resource. The provided style must define the attrRes. If styleResId is 0, the attrRes is retrieved from Context’s theme.

See also

R.styleable.LineSpec