[6.8.4]
[fix] [recode]
This commit is contained in:
@@ -42,12 +42,12 @@ class AutopilotState @JvmOverloads constructor(
|
|||||||
private fun initView() {
|
private fun initView() {
|
||||||
LayoutInflater.from(context).inflate(R.layout.common_autopilot_view, this, true)
|
LayoutInflater.from(context).inflate(R.layout.common_autopilot_view, this, true)
|
||||||
autopilotStateAnimator = BigFrameAnimatorContainer(R.array.in_auto, 31, aciv_autopilot_running_ani)
|
autopilotStateAnimator = BigFrameAnimatorContainer(R.array.in_auto, 31, aciv_autopilot_running_ani)
|
||||||
autopilotLoadingAnimator = ObjectAnimator.ofFloat(aciv_autopilot_state, "rotation", 0f, 360f);
|
autopilotLoadingAnimator = ObjectAnimator.ofFloat(aciv_autopilot_state, "rotation", 0f, 360f)
|
||||||
autopilotLoadingAnimator.interpolator = LinearInterpolator()
|
autopilotLoadingAnimator.interpolator = LinearInterpolator()
|
||||||
autopilotLoadingAnimator.repeatCount = -1 //无限循环
|
autopilotLoadingAnimator.repeatCount = -1 //无限循环
|
||||||
autopilotLoadingAnimator.duration = 2000 //无限循环
|
autopilotLoadingAnimator.duration = 2000 //无限循环
|
||||||
|
|
||||||
autopilotChangeStateAnimator = ObjectAnimator.ofFloat(aciv_autopilot_state, "alpha", 1f, 0f,1f);
|
autopilotChangeStateAnimator = ObjectAnimator.ofFloat(aciv_autopilot_state, "alpha", 1f, 0f,1f)
|
||||||
autopilotChangeStateAnimator.interpolator = LinearInterpolator()
|
autopilotChangeStateAnimator.interpolator = LinearInterpolator()
|
||||||
autopilotChangeStateAnimator.duration = 300
|
autopilotChangeStateAnimator.duration = 300
|
||||||
onClick {
|
onClick {
|
||||||
|
|||||||
Reference in New Issue
Block a user