HorizontalProgressView

class HorizontalProgressView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_HorizontalProgressView_Style, defStyleRes: Int = R.style.BaseHorizontalProgressView) : ProgressView

HorizontalProgressView

Since

0.2.0

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_HorizontalProgressView_Style, defStyleRes: Int = R.style.BaseHorizontalProgressView)

Properties

Link copied to clipboard
Link copied to clipboard

The drawable used to replace the progress background color.

Link copied to clipboard
Link copied to clipboard
private val mBackgroundPaint: Paint
Link copied to clipboard
private val mBackgroundPath: Path

The path for the canvas to draw the mProgressDrawable.

Link copied to clipboard
Link copied to clipboard
private val mDrawablePaint: Paint
Link copied to clipboard
open override var mProgressBackgroundColor: Int

The background color of the progress.

Link copied to clipboard
private var mProgressBitmap: Bitmap?
Link copied to clipboard
open override var mProgressColor: Int

The progress color.

Link copied to clipboard

The drawable used to replace the progress color.

Link copied to clipboard
Link copied to clipboard
private val mProgressPaint: Paint
Link copied to clipboard
private val mRectF: RectF

The scope of the background and progress in the canvas.

Link copied to clipboard

Progress stroke width.

Link copied to clipboard
open override var mText: String

The text that will be displayed with progress.

Link copied to clipboard
open override var mTextColor: Int

The color of the text.

Link copied to clipboard
open override var mTextSize: Float

Ths size of the mText.

Link copied to clipboard

Functions

Link copied to clipboard
private fun drawProgress(canvas: Canvas, left: Float, top: Float, right: Float, bottom: Float, width: Float, paint: Paint)

Draw progress.

Link copied to clipboard
private fun drawProgressDrawable(canvas: Canvas, left: Float, top: Float, right: Float, bottom: Float, width: Float, paint: Paint)

Draw progress drawable.

Link copied to clipboard
protected open override fun onDraw(canvas: Canvas)
Link copied to clipboard
protected open override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard

Set the drawable image of the progress background.

Link copied to clipboard

Set the drawable image of the progress.