[英]How to re-start activity after animation?
我为启动屏幕感到烦恼。 我正在imageview
旋转图像,我想在一段时间后开始新的活动,但是它不起作用。 我尝试以下-
protected override void OnCreate(Bundle bundle)
{
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);
Thread.Sleep(3000);
StartActivity(LoginScreen);
}
在xml file
android:repeatCount=3
我应该怎么做?
用这个
startActivity(this,DestinationActivity.class);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.