app / sg.edu.ntu.scse.cz2006.gymbuddies.widget / CircleView

CircleView

open class CircleView : View

Animated "heart" button based off Twitter's implementation Adapted from https://github.com/frogermcs/LikeAnimation for sg.edu.ntu.scse.cz2006.gymbuddies.widget in Gym Buddies!

Author
Kenneth Soh, frogermcs

Since
2019-10-01

Constructors

<init>

CircleView(context: Context!)
CircleView(context: Context!, attrs: AttributeSet!)
CircleView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)
CircleView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Properties

argbEvaluator

var argbEvaluator: ArgbEvaluator!

circlePaint

var circlePaint: Paint!

END_COLOR

static val END_COLOR: Int

INNER_CIRCLE_RADIUS_PROGRESS

static val INNER_CIRCLE_RADIUS_PROGRESS: Property<CircleView!, Float!>!

innerCircleRadiusProgress

var innerCircleRadiusProgress: Float

maskPaint

var maskPaint: Paint!

maxCircleSize

var maxCircleSize: Int

OUTER_CIRCLE_RADIUS_PROGRESS

static val OUTER_CIRCLE_RADIUS_PROGRESS: Property<CircleView!, Float!>!

outerCircleRadiusProgress

var outerCircleRadiusProgress: Float

START_COLOR

static val START_COLOR: Int

tempBitmap

var tempBitmap: Bitmap!

tempCanvas

var tempCanvas: Canvas!

Functions

getInnerCircleRadiusProgress

open fun getInnerCircleRadiusProgress(): Float

getOuterCircleRadiusProgress

open fun getOuterCircleRadiusProgress(): Float

init

open fun init(): Unit

onDraw

open fun onDraw(canvas: Canvas!): Unit

onSizeChanged

open fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int): Unit

setInnerCircleRadiusProgress

open fun setInnerCircleRadiusProgress(innerCircleRadiusProgress: Float): Unit

setOuterCircleRadiusProgress

open fun setOuterCircleRadiusProgress(outerCircleRadiusProgress: Float): Unit

updateCircleColor

open fun updateCircleColor(): Unit