现象

Acitivity启动后总是先看到黑色背景,然后才会显示界面,这样体验不是太好

解决方案 - 修改主题

<application        android:theme="@style/MyTheme"
<resources>        <style name="MyTheme" parent="@android:style/Theme.Black.NoTitleBar">        <item name="android:windowBackground">@android:color/white    style>

参考:

http://www.eoeandroid.com/thread-153840-1-1.html

更多相关文章

  1. Android学习中遇到的问题及解决方案
  2. android-EditText输入框被键盘遮挡问题解决方案
  3. android ActionBarImpl can only be used with a compatible win
  4. Android游戏可能遇到的3个问题及解决方案
  5. Android访问本地服务器(localhost)的解决方案
  6. Android(安卓)Studio failed to open by giving error “Files L
  7. 【 Android(安卓)】Android(安卓)Runtime Permissions 解决方案(
  8. Android抛出异常NetworkOnMainThreadException解决方案
  9. Android: couldn't save which view has focus because the focu

随机推荐

  1. android的xml解析
  2. Android实现九宫格 主界面应用列表效果
  3. android网络编程——使用Android中的网络
  4. ubuntu下第一个Jni例子
  5. Android(安卓)SDK中 tools 目录下的工具
  6. Android(安卓)系统概要 ——《第一行代码
  7. android CTS测试全pass攻略
  8. 在Android中如何使用全局变量--Applicati
  9. android SDK2.3 更新改动翻译
  10. Android(安卓)Studio 单刷《第一行代码》