Android 12 Developer Preview is here! Try it out, and give us your feedback!

LinearProgressIndicatorSpec

public final class LinearProgressIndicatorSpec
extends BaseProgressIndicatorSpec

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


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

Summary

Fields

public int indeterminateAnimationType

The type of animation of indeterminate mode.

public int indicatorDirection

The direction in which the indicator will swipe or grow to.

Inherited fields

Public constructors

LinearProgressIndicatorSpec(Context context, AttributeSet attrs)

Instantiates the spec for LinearProgressIndicator.

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

Inherited methods

Fields

indeterminateAnimationType

public int indeterminateAnimationType

The type of animation of indeterminate mode.

indicatorDirection

public int indicatorDirection

The direction in which the indicator will swipe or grow to.

Public constructors

LinearProgressIndicatorSpec

public LinearProgressIndicatorSpec (Context context, 
                AttributeSet attrs)

Instantiates the spec for LinearProgressIndicator.

If attributes in R.styleable.LinearProgressIndicator are missing, the values in the default style R.style.Widget_MaterialComponents_LinearProgressIndicator will be loaded. If attributes in R.styleable.BaseProgressIndicator are missing, the values in the default style R.style.Widget_MaterialComponents_ProgressIndicator will be loaded.

Parameters
context Context: Current themed context.

attrs AttributeSet: Component's attributes set.

LinearProgressIndicatorSpec

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

Parameters
context Context

attrs AttributeSet

defStyleAttr int

LinearProgressIndicatorSpec

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

Parameters
context Context

attrs AttributeSet

defStyleAttr int

defStyleRes int