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 int hideAnimationBehavior

The animation behavior to hide the indicator and track.

public int[] indicatorColors

The color array used in the indicator.

public int indicatorTrackGapSize

The size of the gap between the indicator and the rest of the track.

public int showAnimationBehavior

The animation behavior to show the indicator and track.

public int trackColor

The color used in the track.

public int trackCornerRadius

When this is greater than 0, the corners of both the track and the indicator will be rounded with this radius.

public int trackThickness

The thickness of the track and indicator.

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

Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

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