open class DotsView : 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
<init> |
DotsView(context: Context!) DotsView(context: Context!, attrs: AttributeSet!) DotsView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int) DotsView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int) |
argbEvaluator |
var argbEvaluator: ArgbEvaluator! |
centerX |
var centerX: Int |
centerY |
var centerY: Int |
circlePaints |
val circlePaints: Array<Paint!>! |
COLOR_1 |
static val COLOR_1: Int |
COLOR_2 |
static val COLOR_2: Int |
COLOR_3 |
static val COLOR_3: Int |
COLOR_4 |
static val COLOR_4: Int |
currentDotSize1 |
var currentDotSize1: Float |
currentDotSize2 |
var currentDotSize2: Float |
currentProgress |
var currentProgress: Float |
currentRadius1 |
var currentRadius1: Float |
currentRadius2 |
var currentRadius2: Float |
DOTS_COUNT |
static val DOTS_COUNT: Int |
DOTS_PROGRESS |
static val DOTS_PROGRESS: Property<DotsView!, Float!>! |
maxDotSize |
var maxDotSize: Float |
maxInnerDotsRadius |
var maxInnerDotsRadius: Float |
maxOuterDotsRadius |
var maxOuterDotsRadius: Float |
OUTER_DOTS_POSITION_ANGLE |
static val OUTER_DOTS_POSITION_ANGLE: Int |
drawInnerDotsFrame |
open fun drawInnerDotsFrame(canvas: Canvas!): Unit |
drawOuterDotsFrame |
open fun drawOuterDotsFrame(canvas: Canvas!): Unit |
getCurrentProgress |
open fun getCurrentProgress(): 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 |
setCurrentProgress |
open fun setCurrentProgress(currentProgress: Float): Unit |
updateDotsAlpha |
open fun updateDotsAlpha(): Unit |
updateDotsPaints |
open fun updateDotsPaints(): Unit |
updateInnerDotsPosition |
open fun updateInnerDotsPosition(): Unit |
updateOuterDotsPosition |
open fun updateOuterDotsPosition(): Unit |