# LinearProgressIndicator

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/progressindicator/LinearProgressIndicator.java)

*** ** * ** ***


```
public class LinearProgressIndicator extends BaseProgressIndicator
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [com.google.android.material.progressindicator.BaseProgressIndicator](https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator) ||
|   | ↳ | [com.google.android.material.progressindicator.LinearProgressIndicator](https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator) |

*** ** * ** ***

This class implements the linear type progress indicators.

With the default style `Widget.MaterialComponents.LinearProgressIndicator`, 4dp indicator/track thickness is used without animation is used for visibility change. Without customization, primaryColor will be used as the indicator color; the track is the (first) indicator color applying the disabledAlpha. The following attributes can be used to customize the component's appearance:

- `trackThickness`: the thickness of the indicator and track.
- `indicatorColor`: the color(s) of the indicator.
- `trackColor`: the color of the track.
- `trackCornerRadius`: the radius of the rounded corner of the indicator and track.
- `indeterminateAnimationType`: the type of indeterminate animation.
- `indicatorDirectionLinear`: the sweeping direction of the indicator.

For more information, see the [component developer guidance](https://github.com/material-components/material-components-android/blob/master/docs/components/ProgressIndicator.md) and [design guidelines](https://material.io/components/progress-indicators/overview).

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#DEF_STYLE_RES()` |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDETERMINATE_ANIMATION_TYPE_CONTIGUOUS() = 0` Used in the indeterminate animation type setter for contiguous animation, which animates the connecting active segment(s) occupying the full track. |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDETERMINATE_ANIMATION_TYPE_DISJOINT() = 1` Used in the indeterminate animation type setter for disjoint animation, which animates the active segment(s) with noticeable gaps. |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDICATOR_DIRECTION_END_TO_START() = 3` |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDICATOR_DIRECTION_LEFT_TO_RIGHT() = 0` |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDICATOR_DIRECTION_RIGHT_TO_LEFT() = 1` |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDICATOR_DIRECTION_START_TO_END() = 2` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#LinearProgressIndicator(Context)(Context context)` |
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#LinearProgressIndicator(Context,AttributeSet)(Context context, AttributeSet attrs)` |
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#LinearProgressIndicator(Context,AttributeSet,int)( Context context, AttributeSet attrs, int defStyleAttr )` |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getIndeterminateAnimationType()()` Returns the type of indeterminate animation of this progress indicator. |
| `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getIndicatorDirection()()` Returns the indicator animating direction used in this progress indicator. |
| `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getTrackInnerCornerRadius()()` Returns the radius of the rounded inner corner for the indicator and track in pixels. |
| `https://developer.android.com/reference/java/lang/Integer` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getTrackStopIndicatorPadding()()` Returns the padding of the stop indicator at the end of the track in pixels. |
| `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getTrackStopIndicatorSize()()` Returns the size of the stop indicator at the end of the track in pixels. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setIndeterminateAnimationType(int)(int indeterminateAnimationType)` Sets the type of indeterminate animation. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setIndicatorColor(int...)(int[] indicatorColors)` Sets the colors used in the indicator of this progress indicator. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setIndicatorDirection(int)(int indicatorDirection)` Sets the indicator animating direction used in this progress indicator. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setProgressCompat(int,boolean)(int progress, boolean animated)` Sets the current progress to the specified value with/without animation based on the input. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackCornerRadius(int)(int trackCornerRadius)` Sets the radius of the rounded corner for the indicator and track in pixels. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackInnerCornerRadius(int)(int trackInnerCornerRadius)` Sets the radius of the rounded inner corner for the indicator and track in pixels. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackInnerCornerRadiusFraction(float)( float trackInnerCornerRadiusFraction )` Sets the radius of the rounded inner corner for the indicator and track in fraction of the track thickness. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackStopIndicatorPadding(java.lang.Integer)(https://developer.android.com/reference/java/lang/Integer trackStopIndicatorPadding)` Sets the padding of the stop indicator at the end of the track in pixels. |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackStopIndicatorSize(int)(int trackStopIndicatorSize)` Sets the size of the stop indicator at the end of the track in pixels. |

| ### Protected methods |
|---|---|
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#onLayout(boolean,int,int,int,int)(boolean changed, int left, int top, int right, int bottom)` |
| `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#onSizeChanged(int,int,int,int)(int w, int h, int oldw, int oldh)` |

| ### Inherited Constants |
|---|
| From [com.google.android.material.progressindicator.BaseProgressIndicator](https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator) |---|---| | `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#HIDE_ESCAPE() = 3` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#HIDE_INWARD() = 2` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#HIDE_NONE() = 0` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#HIDE_OUTWARD() = 1` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#SHOW_INWARD() = 2` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#SHOW_NONE() = 0` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#SHOW_OUTWARD() = 1` | |

| ### Inherited methods |
|---|
| From [com.google.android.material.progressindicator.BaseProgressIndicator](https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator) |---|---| | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#applyNewVisibility(boolean)(boolean animate)` If it changes to visible, the start animation will be started if `showAnimationBehavior` indicates any. | | `Drawable` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getCurrentDrawable()()` Returns the corresponding drawable based on current indeterminate state. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getHideAnimationBehavior()()` Returns the hide animation behavior used in this progress indicator. | | `https://developer.android.com/reference/com/google/android/material/progressindicator/IndeterminateDrawable<S>` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getIndeterminateDrawable()()` | | `int[]` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getIndicatorColor()()` Returns the array of colors used in the indicator of this progress indicator. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getIndicatorTrackGapSize()()` Returns the size of the gap between the indicator and track in pixels. | | `https://developer.android.com/reference/com/google/android/material/progressindicator/DeterminateDrawable<S>` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getProgressDrawable()()` | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getShowAnimationBehavior()()` Returns the show animation behavior used in this progress indicator. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getTrackColor()()` Returns the color used in the track of this progress indicator. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getTrackCornerRadius()()` Returns the radius of the rounded corner for the indicator and track in pixels. | | `float` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getTrackCornerRadiusFraction()()` Returns the relative radius of the rounded corner for the indicator and track in pixels. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getTrackThickness()()` Returns the track thickness of this progress indicator in pixels. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getWaveAmplitude()()` Returns the amplitude of the indicator's amplitude in pixels. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getWaveSpeed()()` Returns the speed of the indicator's waveform in pixels. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getWavelengthDeterminate()()` Returns the wavelength, in pixels, of the indicator's waveform in determinate mode. | | `int` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#getWavelengthIndeterminate()()` Returns the wavelength, in pixels, of the indicator's waveform in indeterminate mode. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#hide()()` Hides the progress indicator. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#invalidate()()` | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#onAttachedToWindow()()` | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#onDetachedFromWindow()()` | | `synchronized void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#onDraw(Canvas)(Canvas canvas)` | | `synchronized void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#onMeasure(int,int)(int widthMeasureSpec, int heightMeasureSpec)` | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#onVisibilityChanged(View,int)(View changedView, int visibility)` | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#onWindowVisibilityChanged(int)(int visibility)` | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setHideAfterMaxProgress(boolean)(boolean hideAfterMaxProgress)` | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setHideAnimationBehavior(int)(int hideAnimationBehavior)` Sets the hide animation behavior used in this progress indicator. | | `synchronized void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setIndeterminate(boolean)(boolean indeterminate)` Sets the progress mode of the progress indicator. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setIndeterminateAnimatorDurationScale(float)( float indeterminateAnimatorDurationScale )` Sets the scale of the animation duration in indeterminate mode. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setIndeterminateDrawable(Drawable)(Drawable drawable)` Sets a new indeterminate drawable. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setIndicatorTrackGapSize(int)(int indicatorTrackGapSize)` Sets the size of the gap between the indicator and track in pixels. | | `synchronized void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setProgress(int)(int progress)` Sets the current progress to the specified value. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setProgressDrawable(Drawable)(Drawable drawable)` Sets a new progress drawable. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setShowAnimationBehavior(int)(int showAnimationBehavior)` Sets the show animation behavior used in this progress indicator. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setTrackColor(int)(int trackColor)` Sets the color of the track of this progress indicator. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setTrackCornerRadiusFraction(float)(float fraction)` Sets the radius of the rounded corner for the indicator and track in fraction of track thickness. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setTrackThickness(int)(int trackThickness)` Sets the track thickness of this progress indicator. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setVisibilityAfterHide(int)(int visibility)` Sets the visibility which the component will be after hide animation finishes. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setWaveAmplitude(int)(int waveAmplitude)` Sets the amplitude of the indicator's amplitude in pixels. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setWaveAmplitudeRampProgressMax(float)(float progress)` Sets the progress for ramping down the full wave amplitude. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setWaveAmplitudeRampProgressMin(float)(float progress)` Sets the progress for ramping up the full wave amplitude. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setWaveSpeed(int)(int waveSpeed)` Sets the speed of the indicator's waveform in pixels. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setWavelength(int)(int wavelength)` Sets the wavelength of the indicator's determinate and indeterminate waveform in pixels. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setWavelengthDeterminate(int)(int wavelength)` Sets the wavelength, in pixels, of the indicator's waveform in indeterminate mode. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setWavelengthIndeterminate(int)(int wavelength)` Sets the wavelength, in pixels, of the indicator's waveform in indeterminate mode. | | `void` | `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#show()()` Shows the progress indicator. | |

## Constants

### DEF_STYLE_RES

```
public static final int DEF_STYLE_RES
```

### INDETERMINATE_ANIMATION_TYPE_CONTIGUOUS

```
public static final int INDETERMINATE_ANIMATION_TYPE_CONTIGUOUS = 0
```

Used in the indeterminate animation type setter for contiguous animation, which animates the connecting active segment(s) occupying the full track.

### INDETERMINATE_ANIMATION_TYPE_DISJOINT

```
public static final int INDETERMINATE_ANIMATION_TYPE_DISJOINT = 1
```

Used in the indeterminate animation type setter for disjoint animation, which animates the active segment(s) with noticeable gaps.

### INDICATOR_DIRECTION_END_TO_START

```
public static final int INDICATOR_DIRECTION_END_TO_START = 3
```

### INDICATOR_DIRECTION_LEFT_TO_RIGHT

```
public static final int INDICATOR_DIRECTION_LEFT_TO_RIGHT = 0
```

### INDICATOR_DIRECTION_RIGHT_TO_LEFT

```
public static final int INDICATOR_DIRECTION_RIGHT_TO_LEFT = 1
```

### INDICATOR_DIRECTION_START_TO_END

```
public static final int INDICATOR_DIRECTION_START_TO_END = 2
```

## Public constructors

### LinearProgressIndicator

```
public LinearProgressIndicator(Context context)
```

### LinearProgressIndicator

```
public LinearProgressIndicator(Context context, AttributeSet attrs)
```

### LinearProgressIndicator

```
public LinearProgressIndicator(
    Context context,
    AttributeSet attrs,
    int defStyleAttr
)
```

## Public methods

### getIndeterminateAnimationType

```
public int getIndeterminateAnimationType()
```

Returns the type of indeterminate animation of this progress indicator.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_indeterminateAnimationType

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setIndeterminateAnimationType(int)` |   |

### getIndicatorDirection

```
public int getIndicatorDirection()
```

Returns the indicator animating direction used in this progress indicator.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_indicatorDirectionLinear

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setIndicatorDirection(int)` |   |

### getTrackInnerCornerRadius

```
public int getTrackInnerCornerRadius()
```

Returns the radius of the rounded inner corner for the indicator and track in pixels.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_trackInnerCornerRadius

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackInnerCornerRadius(int)` |   |
| `https://developer.android.com/reference/[JVM root]/setTrackInnerCornerRadiusFraction(int)` |   |

### getTrackStopIndicatorPadding

```
public Integer getTrackStopIndicatorPadding()
```

Returns the padding of the stop indicator at the end of the track in pixels.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_trackStopIndicatorPadding

| See also |
|---|---|
| `https://developer.android.com/reference/[JVM root]/setTrackStopIndicatorPadding(int)` |   |

### getTrackStopIndicatorSize

```
public int getTrackStopIndicatorSize()
```

Returns the size of the stop indicator at the end of the track in pixels.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_trackStopIndicatorSize

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackStopIndicatorSize(int)` |   |

### setIndeterminateAnimationType

```
public void setIndeterminateAnimationType(int indeterminateAnimationType)
```

Sets the type of indeterminate animation.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_indeterminateAnimationType

| Parameters |
|---|---|
| `int indeterminateAnimationType` | The new type of indeterminate animation. |

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getIndeterminateAnimationType()` |   |

### setIndicatorColor

```
public void setIndicatorColor(int[] indicatorColors)
```

Sets the colors used in the indicator of this progress indicator.

| Parameters |
|---|---|
| `int[] indicatorColors` | The new colors used in indicator. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if there are less than 3 indicator colors when indeterminateAnimationType is `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDETERMINATE_ANIMATION_TYPE_CONTIGUOUS()`. |

### setIndicatorDirection

```
public void setIndicatorDirection(int indicatorDirection)
```

Sets the indicator animating direction used in this progress indicator.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_indicatorDirectionLinear

| Parameters |
|---|---|
| `int indicatorDirection` | The new indicator direction. |

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getIndicatorDirection()` |   |

### setProgressCompat

```
public void setProgressCompat(int progress, boolean animated)
```

Sets the current progress to the specified value with/without animation based on the input.

If it's in the indeterminate mode and using disjoint animation, it will smoothly transition to determinate mode by finishing the current indeterminate animation cycle.

| Parameters |
|---|---|
| `int progress` | The new progress value. |
| `boolean animated` | Whether to update the progress with the animation. |

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/BaseProgressIndicator#setProgress(int)` |   |

### setTrackCornerRadius

```
public void setTrackCornerRadius(int trackCornerRadius)
```

Sets the radius of the rounded corner for the indicator and track in pixels.

| Parameters |
|---|---|
| `int trackCornerRadius` | The new corner radius in pixels. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if trackCornerRadius is not zero, when indeterminateAnimationType is `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#INDETERMINATE_ANIMATION_TYPE_CONTIGUOUS()`. |

### setTrackInnerCornerRadius

```
public void setTrackInnerCornerRadius(int trackInnerCornerRadius)
```

Sets the radius of the rounded inner corner for the indicator and track in pixels.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_trackInnerCornerRadius

| Parameters |
|---|---|
| `int trackInnerCornerRadius` | The new corner radius in pixels. |

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackInnerCornerRadiusFraction(float)` |   |
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getTrackInnerCornerRadius()` |   |

### setTrackInnerCornerRadiusFraction

```
public void setTrackInnerCornerRadiusFraction(
    float trackInnerCornerRadiusFraction
)
```

Sets the radius of the rounded inner corner for the indicator and track in fraction of the track thickness.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_trackInnerCornerRadius

| Parameters |
|---|---|
| `float trackInnerCornerRadiusFraction` | The new corner radius in fraction of the track thickness. |

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#setTrackInnerCornerRadius(int)` |   |
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getTrackInnerCornerRadius()` |   |

### setTrackStopIndicatorPadding

```
public void setTrackStopIndicatorPadding(Integer trackStopIndicatorPadding)
```

Sets the padding of the stop indicator at the end of the track in pixels.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_trackStopIndicatorPadding

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/Integer trackStopIndicatorPadding` | The new stop indicator padding in pixels. |

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getTrackStopIndicatorPadding()` |   |

### setTrackStopIndicatorSize

```
public void setTrackStopIndicatorSize(int trackStopIndicatorSize)
```

Sets the size of the stop indicator at the end of the track in pixels.

ref com.google.android.material.progressindicator.R.styleable#LinearProgressIndicator_trackStopIndicatorSize

| Parameters |
|---|---|
| `int trackStopIndicatorSize` | The new stop indicator size in pixels. |

| See also |
|---|---|
| `https://developer.android.com/reference/com/google/android/material/progressindicator/LinearProgressIndicator#getTrackStopIndicatorSize()` |   |

## Protected methods

### onLayout

```
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
```

### onSizeChanged

```
protected void onSizeChanged(int w, int h, int oldw, int oldh)
```