HorizontalTextProgressView

class HorizontalTextProgressView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_HorizontalTextProgressView_Style, defStyleRes: Int = R.style.BaseHorizontalTextProgressView) : ProgressView

HorizontalTextProgressView

Since

0.2.0

Constructors

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

Properties

Link copied to clipboard
private var mBackgroundPaint: Paint
Link copied to clipboard
private var mBoxPaint: Paint
Link copied to clipboard
private val mBoxRectF: RectF
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var mProgressBackgroundColor: Int

The background color of the progress.

Link copied to clipboard
open override var mProgressColor: Int

The progress color.

Link copied to clipboard

The height of the progress.

Link copied to clipboard
private var mProgressPaint: Paint
Link copied to clipboard
private val mProgressRectF: RectF
Link copied to clipboard

Color-int of the text box.

Link copied to clipboard
open override var mTextColor: Int

The color of the text.

Link copied to clipboard

The stroke width of the text.

Link copied to clipboard
private var mTextPaint: Paint
Link copied to clipboard
open override var mTextSize: Float

Ths size of the mText.

Link copied to clipboard
private val mTextWidth: Float

The width of the text.

Functions

Link copied to clipboard
private fun drawBox(canvas: Canvas)

Draw text box.

Link copied to clipboard
private fun drawProgress(canvas: Canvas, paint: Paint)

Draw progress.

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