LineTextProgressView

class LineTextProgressView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_LineTextProgressView_Style, defStyleRes: Int = R.style.BaseLineTextProgressView) : ProgressView

LineTextProgressView

Since

0.2.0

Constructors

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

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 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 box.

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
Link copied to clipboard

The base length of the triangle at the bottom of the text box.

Link copied to clipboard
private val mTriangleHeight: Float

The height of the triangle at the bottom of the text box.

Functions

Link copied to clipboard
private fun drawBox(canvas: Canvas, left: Float, width: Float, height: Float)
Link copied to clipboard
private fun drawProgress(canvas: Canvas, left: Float, top: Float, right: Float, bottom: Float, 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)