|
|
@@ -1,5 +1,7 @@
|
|
|
package com.atmob.voiceai.module.splash;
|
|
|
|
|
|
+import android.animation.Animator;
|
|
|
+import android.animation.AnimatorListenerAdapter;
|
|
|
import android.animation.ValueAnimator;
|
|
|
import android.annotation.SuppressLint;
|
|
|
import android.os.Bundle;
|
|
|
@@ -91,8 +93,10 @@ public class SplashActivity extends BaseActivity<ActivitySplashBinding> {
|
|
|
ValueAnimator alphaAnimator = ValueAnimator.ofFloat(0f, 1f);
|
|
|
alphaAnimator.setStartDelay(400);
|
|
|
alphaAnimator.setDuration(800);
|
|
|
+ new Handler().postDelayed(() -> binding.lottieGuide.playAnimation(), 400);
|
|
|
alphaAnimator.addUpdateListener(animation -> {
|
|
|
float alpha = (float) animation.getAnimatedValue();
|
|
|
+ binding.lottieBox.setAlpha(alpha);
|
|
|
binding.tvPracticalFunny.setAlpha(alpha);
|
|
|
binding.tvPractical.setAlpha(alpha);
|
|
|
binding.tvGuideDone.setAlpha(alpha);
|