|
|
@@ -17,7 +17,9 @@ import com.atmob.app.lib.base.BaseActivity;
|
|
|
import com.atmob.common.ui.SizeUtil;
|
|
|
import com.atmob.voiceai.R;
|
|
|
import com.atmob.voiceai.data.consts.Constants;
|
|
|
+import com.atmob.voiceai.data.consts.EventId;
|
|
|
import com.atmob.voiceai.databinding.ActivitySplashBinding;
|
|
|
+import com.atmob.voiceai.handlers.EventHandler;
|
|
|
import com.atmob.voiceai.module.main.MainActivity;
|
|
|
import com.atmob.voiceai.utils.CommonUtils;
|
|
|
import com.atmob.voiceai.utils.SpannableUtil;
|
|
|
@@ -56,15 +58,19 @@ public class SplashActivity extends BaseActivity<ActivitySplashBinding> {
|
|
|
return;
|
|
|
}
|
|
|
if (SplashViewModel.GUIDE_PAGE_1 == current) {
|
|
|
+ EventHandler.report(EventId.guide_001);
|
|
|
startGuideEnter(binding.ivGuideHeader1, binding.tvGuideHeader1, binding.ivGuide1, 0, 400);
|
|
|
} else if (SplashViewModel.GUIDE_PAGE_2 == current) {
|
|
|
+ EventHandler.report(EventId.guide_002);
|
|
|
startGuideLeave(binding.ivGuideHeader1, binding.tvGuideHeader1, binding.ivGuide1);
|
|
|
startGuideEnter(binding.ivGuideHeader2, binding.tvGuideHeader2, binding.ivGuide2, 600, 0);
|
|
|
} else if (SplashViewModel.GUIDE_PAGE_3 == current) {
|
|
|
+ EventHandler.report(EventId.start_001);
|
|
|
startGuideLeave(binding.ivGuideHeader2, binding.tvGuideHeader2, binding.ivGuide2);
|
|
|
new Handler().postDelayed(() -> binding.tvNextStep.animate().alpha(0).setDuration(200).start(), 400);
|
|
|
showEndGuide();
|
|
|
} else if (SplashViewModel.GUIDE_PAGE_END == current) {
|
|
|
+ EventHandler.report(EventId.startbutton_001);
|
|
|
closeGuide();
|
|
|
}
|
|
|
});
|