|
|
@ -208,16 +208,9 @@ class RotateLoading : View { |
|
|
|
|
|
|
|
|
|
|
|
private fun stopAnimator() { |
|
|
|
private fun stopAnimator() { |
|
|
|
animate().cancel() |
|
|
|
animate().cancel() |
|
|
|
animate().scaleX(0.0f) |
|
|
|
|
|
|
|
.scaleY(0.0f) |
|
|
|
|
|
|
|
.setListener(object : AnimatorListenerAdapter() { |
|
|
|
|
|
|
|
override fun onAnimationEnd(animation: Animator) { |
|
|
|
|
|
|
|
isStarted = false |
|
|
|
isStarted = false |
|
|
|
visibility = GONE |
|
|
|
visibility = GONE |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
.start() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
companion object { |
|
|
|
private const val DEFAULT_WIDTH = 6 |
|
|
|
private const val DEFAULT_WIDTH = 6 |
|
|
|