• 【Android】Android android:launchMode=“singleInstance” 页面跳转黑屏


    将Activity的启动模式设置为singleInstance,即android:launchMode=“singleInstance” 

    当应用跳转到启动模式设置为singleInstance的Activity页面时,出现一段黑屏

    修改方式如下

    步骤一、在AndroidManifest.xml中设置Activity主题 android:theme="@style/Theme.TitleBar"

    <activity
                android:name="ActivityDemo"
                android:launchMode="singleInstance"
                android:theme="@style/Theme.TitleBar" >
     </activity>

    步骤二、在\res\values\styles.xml 中添加

        <style name="Theme.TitleBar" parent="android:Theme.Light" />
    
        <style name="Theme.TitleBar" parent="android:Theme">
            <item name="android:windowIsTranslucent">true</item>
        </style>

    本文出自 Ray-Ray的博客

    文章地址 http://www.cnblogs.com/rayray/archive/2013/03/03/2939060.html

    感谢大家的推荐和收藏

  • 相关阅读:
    maven搭建
    javascript
    FTP工具类
    jsp相关知识
    java mail 邮箱发送
    servlet相关
    hibernate文档
    6月
    Spring AOP 使用总结
    spring事务配置总结
  • 原文地址:https://www.cnblogs.com/rayray/p/2939060.html
Copyright © 2020-2023  润新知