ArcProgressView

class ArcProgressView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_ArcProgressView_Style, defStyleRes: Int = R.style.BaseArcProgressView) : ProgressView

ArcProgressView.

Since

0.2.0

Constructors

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

Properties

Link copied to clipboard
private val mArcRectF: RectF

The scope of the arc.

Link copied to clipboard
private val mDefaultRadius: Float
Link copied to clipboard
protected open override val mDefaultText: String

Default text.

Link copied to clipboard

Progress endpoint circle color-int.

Link copied to clipboard
Link copied to clipboard

The radius of the endpoint circle.

Link copied to clipboard
open override var mProgressBackgroundColor: Int

The background color of the progress.

Link copied to clipboard
Link copied to clipboard
open override var mProgressColor: Int

The progress color.

Link copied to clipboard
private var mProgressPaint: Paint
Link copied to clipboard

Radius of the circle.

Link copied to clipboard

Progress shader.

Link copied to clipboard

Width of the circle progress.

Link copied to clipboard

Ture if you want to show the endpoint circle, false otherwise.

Link copied to clipboard

Ture if you want to show the startpoint circle, false otherwise.

Link copied to clipboard

True if you want to show the text, false otherwise.

Link copied to clipboard

Progress startpoint circle color-int.

Link copied to clipboard
Link copied to clipboard
open override var mTextColor: Int

The color 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.

Functions

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

Recommended value of mEndpointCircleRadius.

Link copied to clipboard

Recommended value of mProgressWidth.