android错误-android.util.AndroidRuntimeException:You cannot combine custom titles with other title
报如下错误: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
android错误-android.util.AndroidRuntimeException:You cannot combine custom titles with other title相关推荐
- 报如下错误:android.util.AndroidRuntimeException: You cannot combine custom titles with other title featur
解决方法: 后来,我直接在 AndroidManifest.xml 中,将android:theme="@style/AppTheme" 直接改成android:theme=&qu ...
- 安卓自定义标题时候you cannot combine custom titles with other
title_layout文件 public class MainActivity extends Activity { @Override protected void onCreat ...
- E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher android.util.AndroidRuntimeException: Animators
错误 运行android项目 控制台报错 android.util.AndroidRuntimeException: Animators may only be run on Looper threa ...
- android.util.AndroidRuntimeException: requestFeature() must be called before adding content
问题 Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding co ...
- Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity ...
- 我的Android进阶之旅------解决错误: java.util.regex.PatternSyntaxException: Incorrect Unicode property...
1.错误描述 今天使用正则表达式验证密码的时候,报了错误 java.util.regex.PatternSyntaxException: Incorrect Unicode property near ...
- 基于ubuntu16.04多用户编译android N(android 7.1)系统提示ninja_wrapper错误问题
基于ubuntu16.04多用户编译android N(android 7.1)系统提示ninja_wrapper错误问题 Ubuntu 1604系统除了root,还有kandi和sundi两个用户, ...
- Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误
Android报"android.content.res.Resources$NotFoundException: String resource ID #0x2"错误 当调用se ...
- react-native无法在react-native-gesture-handler中解析符号android.support.v4.util.Pools解决方案...
在android studio中打开项目 - >浏览到RNGestureHandler中的指定文件 删除这个 import android.support.v4.util.Pools; 并添加此 ...
最新文章
- LUOGU P2764 最小路径覆盖问题 (最小路径点覆盖)
- 罗辑思维:情怀还是生意?
- 简述osi参考模型各层主要功能_计软考研双日练 | OSI参考模型各层提供什么服务?...
- Liferay Portal额外研究-银狐999
- ASA8.4policy-map接口和全局执行的优先级测试:
- ms2005 SQL Server设置改为SQL Server身份验证
- LeetCode 1064. 不动点(二分查找)
- mysql事务最大个数_事务、mysql数据库的默认最大连接数、分页
- java8 clock_java8新的时间api
- linux 忘记了密码,Linux忘记密码的解救方法
- 全国(全球)快递查询物流查询API,物流信息追踪接口
- DPDK Release 21.05
- 实对称阵的正交相似对角化
- 生产制造追溯系统-再说条码打印
- 设置windows桌面的窗口为保护色或豆绿色
- 【考】现代传感器技术作业一至四 复习用
- 什么是seo?什么是pr值?
- Linux 下使用Trickle限制下载/上传带宽
- 2.一脚踹进ViT——Attention机制原理及实现
- 在“D:/mydat“目录下有一个学生名单文件(文本)“student2018.txt“,里面记载了若干学生信息, 每个学生信息单独一行,每行信息共有五列,每列之间用逗号分开, 其每列含义按顺序是:学