报如下错误: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相关推荐

  1. 报如下错误:android.util.AndroidRuntimeException: You cannot combine custom titles with other title featur

    解决方法: 后来,我直接在 AndroidManifest.xml 中,将android:theme="@style/AppTheme" 直接改成android:theme=&qu ...

  2. 安卓自定义标题时候you cannot combine custom titles with other

    title_layout文件 public class MainActivity extends Activity {     @Override     protected void onCreat ...

  3. E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher android.util.AndroidRuntimeException: Animators

    错误 运行android项目 控制台报错 android.util.AndroidRuntimeException: Animators may only be run on Looper threa ...

  4. android.util.AndroidRuntimeException: requestFeature() must be called before adding content

    问题 Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding co ...

  5. Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity

    Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity ...

  6. 我的Android进阶之旅------解决错误: java.util.regex.PatternSyntaxException: Incorrect Unicode property...

    1.错误描述 今天使用正则表达式验证密码的时候,报了错误 java.util.regex.PatternSyntaxException: Incorrect Unicode property near ...

  7. 基于ubuntu16.04多用户编译android N(android 7.1)系统提示ninja_wrapper错误问题

    基于ubuntu16.04多用户编译android N(android 7.1)系统提示ninja_wrapper错误问题 Ubuntu 1604系统除了root,还有kandi和sundi两个用户, ...

  8. Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误

    Android报"android.content.res.Resources$NotFoundException: String resource ID #0x2"错误 当调用se ...

  9. react-native无法在react-native-gesture-handler中解析符号android.support.v4.util.Pools解决方案...

    在android studio中打开项目 - >浏览到RNGestureHandler中的指定文件 删除这个 import android.support.v4.util.Pools; 并添加此 ...

最新文章

  1. LUOGU P2764 最小路径覆盖问题 (最小路径点覆盖)
  2. 罗辑思维:情怀还是生意?
  3. 简述osi参考模型各层主要功能_计软考研双日练 | OSI参考模型各层提供什么服务?...
  4. Liferay Portal额外研究-银狐999
  5. ASA8.4policy-map接口和全局执行的优先级测试:
  6. ms2005 SQL Server设置改为SQL Server身份验证
  7. LeetCode 1064. 不动点(二分查找)
  8. mysql事务最大个数_事务、mysql数据库的默认最大连接数、分页
  9. java8 clock_java8新的时间api
  10. linux 忘记了密码,Linux忘记密码的解救方法
  11. 全国(全球)快递查询物流查询API,物流信息追踪接口
  12. DPDK Release 21.05
  13. 实对称阵的正交相似对角化
  14. 生产制造追溯系统-再说条码打印
  15. 设置windows桌面的窗口为保护色或豆绿色
  16. 【考】现代传感器技术作业一至四 复习用
  17. 什么是seo?什么是pr值?
  18. Linux 下使用Trickle限制下载/上传带宽
  19. 2.一脚踹进ViT——Attention机制原理及实现
  20. 在“D:/mydat“目录下有一个学生名单文件(文本)“student2018.txt“,里面记载了若干学生信息, 每个学生信息单独一行,每行信息共有五列,每列之间用逗号分开, 其每列含义按顺序是:学

热门文章

  1. 网易云信联手长沙银行,远程视频银行系统助力数字化转型
  2. 快速实现移动端短视频功能?没你想得那么难!
  3. 前端基础21:正则基础
  4. 一个隐藏着的僵尸巨兽——Ponmocup僵尸网络
  5. 关于WEB ServiceWCFWebApi实现身份验证之WebApi篇
  6. 基于多进程和基于多线程服务器的优缺点及nginx服务器的启动过程
  7. Dynamic Web TWAIN扫描识别工具改变缓冲区图像大小
  8. javascript中常用数组函数
  9. ASP.NET跨页面传值(二)
  10. NHibernate教程2(转载)