public final class

CircularProgressIndicator.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

↳androidx.wear.tiles.material.CircularProgressIndicator.Builder

Overview

Builder class for CircularProgressIndicator

Summary

Constructors
publicBuilder()

Creates a builder for the CircularProgressIndicator.

Methods
public CircularProgressIndicatorbuild()

Constructs and returns CircularProgressIndicator with the provided field and look.

public CircularProgressIndicator.BuildersetCircularProgressIndicatorColors(ProgressIndicatorColors circularProgressIndicatorColors)

Sets the colors for the CircularProgressIndicator.

public CircularProgressIndicator.BuildersetContentDescription(java.lang.CharSequence contentDescription)

Sets the content description of the CircularProgressIndicator to be used for accessibility support.

public CircularProgressIndicator.BuildersetEndAngle(float endAngle)

Sets the end angle of the CircularProgressIndicator's background arc, where angle 0 is 12 o'clock.

public CircularProgressIndicator.BuildersetProgress(float progressPercentage)

Sets the progress of the CircularProgressIndicator.

public CircularProgressIndicator.BuildersetStartAngle(float startAngle)

Sets the start angle of the CircularProgressIndicator's background arc, where angle 0 is 12 o'clock.

public CircularProgressIndicator.BuildersetStrokeWidth(DimensionBuilders.DpProp strokeWidth)

Sets the stroke width of the CircularProgressIndicator.

public CircularProgressIndicator.BuildersetStrokeWidth(float strokeWidth)

Sets the stroke width of the CircularProgressIndicator.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates a builder for the CircularProgressIndicator.

Methods

public CircularProgressIndicator.Builder setProgress(float progressPercentage)

Sets the progress of the CircularProgressIndicator. Progress should be percentage from 0 to 1. Progress will be colored in ProgressIndicatorColors.getTrackColor(). If not set, 0 will be used.

public CircularProgressIndicator.Builder setStartAngle(float startAngle)

Sets the start angle of the CircularProgressIndicator's background arc, where angle 0 is 12 o'clock. Start angle doesn't need to be within 0-360 range. I.e. -90 is to start arc from the 9 o'clock. If not set 0 will be used and the indicator will have full length.

public CircularProgressIndicator.Builder setEndAngle(float endAngle)

Sets the end angle of the CircularProgressIndicator's background arc, where angle 0 is 12 o'clock. End angle doesn't need to be within 0-360 range, but it must be larger than start angle. If not set 360 will be used and the indicator will have full length.

public CircularProgressIndicator.Builder setContentDescription(java.lang.CharSequence contentDescription)

Sets the content description of the CircularProgressIndicator to be used for accessibility support.

public CircularProgressIndicator.Builder setCircularProgressIndicatorColors(ProgressIndicatorColors circularProgressIndicatorColors)

Sets the colors for the CircularProgressIndicator. If set, ProgressIndicatorColors.getIndicatorColor() will be used for a progress that has been made, while ProgressIndicatorColors.getTrackColor() will be used for a background full size arc. If not set, ProgressIndicatorDefaults.DEFAULT_COLORS will be used.

Sets the stroke width of the CircularProgressIndicator. Strongly recommended value is ProgressIndicatorDefaults.DEFAULT_STROKE_WIDTH.

public CircularProgressIndicator.Builder setStrokeWidth(float strokeWidth)

Sets the stroke width of the CircularProgressIndicator. Strongly recommended value is ProgressIndicatorDefaults.DEFAULT_STROKE_WIDTH.

Constructs and returns CircularProgressIndicator with the provided field and look.