拆机图,毛尖的功效与作用,wiki开车舞
1、将启动图片保存到drawable文件夹下
2、在drawable文件夹下创建splashscreen.xml
<?xml version="1.0" encoding="utf-8" ?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/splash_screen" android:gravity="fill" android:layout_gravity="center"/>
3、在android项目的 resources 文件夹下添加“values”文件夹,创建 styles.xml,设置其创建内容如下:
<?xml version="1.0" encoding="utf-8" ?> <resources> <style name="theme.splash" parent="android:theme.holo.light"> <item name="android:windowbackground">@drawable/splashscreen</item> <item name="android:windownotitle">true</item> <item name="android:windowistranslucent">false</item> <item name="android:windowisfloating">false</item> <item name="android:backgrounddimenabled">true</item> </style> </resources>
4、在android项目下创建一个splashscreen.cs类
[activity(mainlauncher = true, nohistory = true, theme = "@style/theme.splash", configurationchanges = configchanges.screensize | configchanges.orientation)] public class splashscreen : activity { protected override void oncreate(bundle bundle) { base.oncreate(bundle); var intent = new intent(this, typeof(mainactivity)); startactivity(intent); finish(); } }
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论