- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi XE5 为Android增加启动图片显示
Delphi XE5 为Android增加启动图片显示
本方法是根据群里重庆steve的“Android 启动不黑屏(可自定义启动屏)”整理的。
打开Project---Deployment添加:
1)Styles.xml,RemotePath设为:res\values\,Platfoms设为:Android
2)Loading.png ,RemotePath设为: res\drawable-port\(若是横屏的启动画面,设置为: res\drawable-land ),Platfoms设为:Android
打开AndroidManifest.template.xml
添加这段: android:theme="@style/MyTheme.NoTitleBar.CustomBackground"
编译运行就能看到启动图片。
已知问题:显示启动图片切换到程序界面时有短暂黑屏。
Styles.xml的内容: