【发布时间】:2016-10-23 13:33:04
【问题描述】:
我想在启动屏幕上显示不同的图像(不同尺寸的相同图像),纵向和横向,xamarin 形式的 android 应用程序。 这是我的资源文件夹的结构: Resources
这里是启动画面:
[Activity(Theme = "@style/Theme.Splash", //Indicates the theme to use for this activity
MainLauncher = true, //Set it as boot activity
NoHistory = true, //Doesn't place it in back stack
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class SplashActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
System.Threading.Thread.Sleep(10000);
this.StartActivity(typeof(MainActivity));
}
}
我总是从可绘制文件夹中获取图像,然后将其横向拉伸。有人有什么想法吗?
【问题讨论】:
标签: android xamarin.forms xamarin.android splash-screen