Android android:launchMode=“singleInstance” 页面跳转黑屏
2014-02-21 13:06
549 查看
将Activity的启动模式设置为singleInstance,即android:launchMode=“singleInstance”
当应用跳转到启动模式设置为singleInstance的Activity页面时,出现一段黑屏
修改方式如下
步骤一、在AndroidManifest.xml中设置Activity主题 android:theme="@style/Theme.TitleBar"
步骤二、在\res\values\styles.xml 中添加
转自: /article/4820641.html
当应用跳转到启动模式设置为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>
转自: /article/4820641.html
相关文章推荐
- Android ActionBar 一步一步分析 (转)
- android xmlReader解析RSS(中文乱码解决)
- Android中SQLite应用详解
- Android剪贴板操作
- android 系统内置拍照功能
- Android GridView属性集合
- 编译Coco2d-x android 程序出现make: *** No rule to make target ...CCConfiguration.o'. Stop
- ubuntu配置android开发环境和编译源码遇到的一些问题
- Android NDK开发 环境搭建
- android 显示特殊符号
- 最新Android adt22.3.0和4.4 资源下载
- 借助NDK,Android与C动态链接库的相互调用
- Android解析json数据(Gson)
- 说说Android 两种为自定义组件添加属性的使用方法和区别
- Android nine-patch .9使用方法入门
- Android 游戏教程:让人物动起来
- 【android官方文档】android 屏幕适配 支持不同的屏幕
- Android 设置飞行模式,判断是否是飞行模式
- Android APK自动安装
- android的上下文菜单---context menu