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.

public int trackStopIndicatorSize

The size of the stop indicator at the end of the track.

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.

trackStopIndicatorSize

public int trackStopIndicatorSize

The size of the stop indicator at the end of the track.

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 Widget.MaterialComponents.LinearProgressIndicator 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.

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