Android 程序启动时的黑屏或者白屏问题
来源:互联网 发布:中科大少年班 知乎 编辑:程序博客网 时间:2024/04/20 05:08
应用在初次启动的时候有黑屏闪过(或者白屏),因为系统默认的theme(主题里设置了颜色)设置了启动时的北京颜色。那么怎么能改变一下,让它变的好看点呢?
看了很多,发现stackoverflow.com上有很多好东西啊。前一段时间有人说学会了Google,Stackoverflow.com,就不愁写代码了。资源太多了。
消除activity启动时的初始白屏或黑屏问题
1. style.xml中中增加
<style name="AppTheme" parent="android:Theme.Holo.Light">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
2 acvitiy 的属性中加上
android:theme="@style/AppTheme"
Android 解决程序启动时的黑屏问题
http://www.eoeandroid.com/forum.php?mod=viewthread&tid=208904&fromuid=511991
http://www.cnblogs.com/loulijun/archive/2013/04/09/3010318.html
http://www.linuxidc.com/Linux/2012-02/53064.htm
http://www.cnblogs.com/U-tansuo/archive/2013/03/27/U_tansuo-android.html
http://stackoverflow.com/questions/10292708/change-application-background-image
http://stackoverflow.com/questions/9535695/dynamically-find-the-theme-name-in-android-application/9537629#9537629
http://stackoverflow.com/questions/14425868/whats-the-difference-between-windowbackground-and-background-for-activities-sty
http://android-developers.blogspot.co.il/2009/03/window-backgrounds-ui-speed.html
http://stackoverflow.com/questions/10173158/android-custom-theme-different-theme-for-landscape-and-portrait-mode
http://blog.sina.com.cn/s/blog_6004d60d0101i1er.html(所有样式请参考\sdk\docs\reference\android\R.attr.html)
注意看这里的onCreate中的setContentView()后面的那句话:
http://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/curiouscreature/android/shelves/activity/ShelvesActivity.java
- Android 程序启动时的黑屏或者白屏问题
- Android Activity启动时黑屏或者白屏的原因
- 解决启动Android应用程序时出现白屏或者黑屏的问题
- 解决Android App第一次启动时显示白屏或者黑屏的问题
- android启动时白屏或者黑屏的问题
- android启动时白屏或者黑屏的问题
- Android应用启动黑屏或者白屏问题
- 解决APP启动白屏或者黑屏闪现的问题
- Android,启动白屏或者黑屏
- Android开发之解决APP启动白屏或者黑屏闪现的问题
- Android解决APP启动白屏或者黑屏闪现的问题
- Android开发之解决APP启动白屏或者黑屏闪现的问题,androidapp
- Android开发之解决APP启动白屏或者黑屏闪现的问题
- Android APP启动时出现白屏或者黑屏怎么办?
- Android APP启动时出现白屏或者黑屏怎么办?
- Android APP启动时出现白屏或者黑屏怎么办?
- Android APP启动时出现白屏或者黑屏怎么办?
- Android APP启动时出现白屏或者黑屏怎么办?
- 感知计算:开发人员的十大资源
- 委托添加属性
- andorid程序同时支持手机 平板电脑
- The downside for developers of automatic app updating in iOS 7
- uboot 删除多余目录 飞思卡尔
- Android 程序启动时的黑屏或者白屏问题
- PBS集群搭建专题(一) | 前期准备工作 | (待完善)
- 使用存储过程分页
- C++语法基础--pair简介
- mpeg4ip的Mp4v2库移植到android系统上,实现h264封装到mp4的容器内
- JAVA WEB获取相对和绝对路径
- Pirated Apps in the App Store
- c++ 中const对象与默认构造函数
- IOS XMPP的实践