ProgressTrackerView

class ProgressTrackerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr: Int = 0, @StyleRes defStyleRes: Int = 0) : LinearLayout

A view to help with the visualization of progress and state of a process that consists on one or more steps.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr: Int = 0, @StyleRes defStyleRes: Int = 0)

Functions

Link copied to clipboard

Increases the progress by one step and sets the current step to successful state.

Link copied to clipboard
fun setError()

Sets the current step to failed state.

Properties

Link copied to clipboard

The number of steps to track. Equivalent to providing the app:progressTrackerViewProgressMax attribute in the layout xml file.

Link copied to clipboard

The current progress count.

Link copied to clipboard

Sets the drawable for when the enrollment is unprocessed.

Link copied to clipboard

The drawable to display per step when the step is processed and is failed. Equivalent to providing the app:progressTrackerViewFailureDrawable attribute in the layout xml file.

Link copied to clipboard

Sets the drawable for when the enrollment is processed.

Link copied to clipboard

The drawable to display per step when the step is processed and is successful. Equivalent to providing the app:progressTrackerViewSuccessDrawable attribute in the layout xml file.

Link copied to clipboard

Sets the drawable for when the enrollment hasn't been checked yet.

Link copied to clipboard

The drawable to display per step when the step is not yet processed. Equivalent to providing the app:progressTrackerViewUnprocessedDrawable attribute in the layout xml file.