swipeprogressview / me.thanel.swipeprogressview

Package me.thanel.swipeprogressview

Types

SwipeProgressView

class SwipeProgressView : FrameLayout

An interactive user interface element that indicates generic progress. The user can touch the view and swipe left or right to set the current progress level.

Properties

progressRange

var SwipeProgressView.progressRange: IntRange

The minimum-maximum progress range of this view.

Functions

setProgressAnimated

fun SwipeProgressView.setProgressAnimated(progress: Int): Unit

Sets the current progress to the specified value, animating the visual position between the current and target values.

setProgressColor

fun SwipeProgressView.setProgressColor(color: Int): Unit

Sets the progressDrawable of this view to a solid color.