10
4

设置Mono for android启动页

0
归档:2013年4月分类:开源Mono
内容纲要

移动应用都有应用启动页,在mono for android里,设置应用启动页非常简单。

1、在Style.xml里添加设置:

<resources>

<style name="Theme.Splash" parent="android:Theme">

<item name="android:windowBackground">@drawable/splash</item>

<item name="android:windowNoTitle">true</item>

</style>

</resources>

2、在需要的启动Activity里设置:

[Activity(Label = "我读报", MainLauncher = true, Theme = "@style/Theme.Splash", ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait, NoHistory = true)]

public class SplashActivity : Activity{

}


声明: 本文采用 BY-NC-SA 协议进行授权. 未标注“转”的文章均为原创,转载请注明转自: 设置Mono for android启动页

公告栏

欢迎大家来到我的博客,我是dodoro,希望我的博客能给你带来帮助。