【发布时间】:2016-05-27 22:53:51
【问题描述】:
我需要从第 1 项活动转到第 2 项活动,睡眠时间为 5 秒,然后再转到第 2 项活动。我的第一个活动包含使用以下代码旋转的图像-
ImageForRotation.StartAnimation(loadedImage)
第二个活动是登录页面。这是我的代码-
base.OnCreate(bundle);
SetContentView(Resource.Layout.SplashScreen);
ImageView ImageForRotation = FindViewById < ImageView > (Resource.Id.imageForRotation);
var loadedImage = AnimationUtils.LoadAnimation(this, Resource.Animation.SplashScreenImageRotation);
ImageForRotation.StartAnimation(loadedImage);
//here the code for 5 second wait time which i don't know
StartActivity(typeof(LoginScreen)); //second activity
【问题讨论】:
标签: c# android visual-studio android-activity xamarin.android