CircularProgressIndicatorSpec

public final class CircularProgressIndicatorSpec
extends BaseProgressIndicatorSpec

java.lang.Object
   ↳ com.google.android.material.progressindicator.BaseProgressIndicatorSpec
     ↳ com.google.android.material.progressindicator.CircularProgressIndicatorSpec


This class contains the parameters for drawing a circular type progress indicator. The parameters reflect the attributes defined in R.styleable.BaseProgressIndicator and R.styleable.CircularProgressIndicator.

Summary

Fields

public int indicatorDirection

The direction in which the indicator will rotate and grow to.

public int indicatorInset

The extra space from the outer edge of the indicator to the edge of the canvas.

public int indicatorSize

The size (outer diameter) of the spinner.

Inherited fields

Public constructors

CircularProgressIndicatorSpec(Context context, AttributeSet attrs)

Instantiates the spec for CircularProgressIndicator.

CircularProgressIndicatorSpec(Context context, AttributeSet attrs, int defStyleAttr)
CircularProgressIndicatorSpec(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Inherited methods

Fields

indicatorDirection

public int indicatorDirection

The direction in which the indicator will rotate and grow to.

indicatorInset

public int indicatorInset

The extra space from the outer edge of the indicator to the edge of the canvas.

indicatorSize

public int indicatorSize

The size (outer diameter) of the spinner.

Public constructors

CircularProgressIndicatorSpec

public CircularProgressIndicatorSpec (Context context, 
                AttributeSet attrs)

Instantiates the spec for CircularProgressIndicator.

If attributes in R.styleable.CircularProgressIndicator are missing, the values in the default style Widget.MaterialComponents.CircularProgressIndicator will be loaded. If attributes in R.styleable.BaseProgressIndicator are missing, the values in the default style Widget.MaterialComponents.ProgressIndicator will be loaded.

Parameters
context Context: Current themed context.

attrs AttributeSet: Component's attributes set.

CircularProgressIndicatorSpec

public CircularProgressIndicatorSpec (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

CircularProgressIndicatorSpec

public CircularProgressIndicatorSpec (Context context, 
                AttributeSet attrs, 
                int defStyleAttr, 
                int defStyleRes)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

defStyleRes int