android错误-android.util.AndroidRuntimeException:You cannot combine custom titles with other title
来源:互联网 发布:网络摄像头连接拾音器 编辑:程序博客网 时间:2024/06/05 05:26
报如下错误:android.util.AndroidRuntimeException: You cannot combinecustom titles with other title features
这个问题主要是由下面语句造成的。
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
原因暂时不是很清楚,在android4.0中会出现,android2.3中没有问题,貌似是title的冲突,解决方法如下:
在你的AndroidManifest.xml中添加相应Active的theme。如添加下面语句可解决:
android:theme="@android:style/Theme.Dialog"
具体的theme选项内容的添加根据你自己的意图选择。一般选择android:theme="@android:style/Theme" 默认格式
参考: http://blog.csdn.net/jason0539/article/details/12979005
0 0
- android错误之android.util.AndroidRuntimeException: You cannot combine custom titles with other title
- android错误-android.util.AndroidRuntimeException:You cannot combine custom titles with other title
- 报如下错误:android.util.AndroidRuntimeException: You cannot combine custom titles with other title featur
- 报错android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title features .
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title features .
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
- android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
- 报错】android.util.AndroidRuntimeException: You cannot combine custom titles with other title features.
- Caused by: android.util.AndroidRuntimeException: You cannot combine custom titles with other title f
- Android异常-AndroidRuntimeException: You cannot combine custom titles with other title features
- AndroidRuntimeException: You cannot combine custom titles with other title feature
- Android 4.0后,自定义Title报错 You cannot combine custom titles with other title feature
- Android 4.0后,自定义Title报错 You cannot combine custom titles with other title feature
- C++ Windows thread pool
- iOS应用如何实现64位的支持
- Jetty 的工作原理以及与 Tomcat 的比较
- 关于 lpj
- 一句话判断x是否为2的若干次幂
- android错误-android.util.AndroidRuntimeException:You cannot combine custom titles with other title
- 深度学习论文理解3:Flexible, high performance convolutional neural networks for image classification
- 1804_4 随笔
- 2014
- 将china译成密码
- CentOS安装rpm包时遇到Header V3 DSA signature: NOKEY时解决办法
- Qt for Linux/X11
- Java避免空指针
- kfifo