You cannot combine custom titles with other title features问题

原创 2018年04月17日 10:26:15
最近接受一个老项目,把项目导进as(之前是eclipse)直接报You cannot combine custom titles with other title features,在网上找答案说是Theme不能用Theme.AppCompat的主题,这个主题自定义有一个title,而我的代码里面有个自定义title
//自定义标题
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
//设置标题为某个layout
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.titlebar);

既然是Theme默认有个title那就直接去掉就好了如下:

<item name="android:windowActionBar">false</item>

<item name="android:windowNoTitle">true</item>

这样就没毛病了,

注意不是<item name="windowNoTitle">true</item>这个
先记录下来,估计没什么用,项目太老了

解决自定义标题栏You cannot combine custom titles with other title features问题

我的项目中有多个标题,每个标题的基本样式是一样,的因此我想自定义一个自己的标题栏,在每个界面通用。但是在项目的style上遇到一个麻烦。       当我的项目的Theme继承自android:Th...
  • stone_2323
  • stone_2323
  • 2016-05-16 16:58:26
  • 2855

Android自定义标题栏异常You cannot combine custom titles with other title features

我们在使用自定义标题栏时,一般的写法基本上是下面几步 requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layo...
  • xuhanbing
  • xuhanbing
  • 2016-06-03 10:30:19
  • 1394

Android 4.0后,自定义Title报错 You cannot combine custom titles with other title feature

运行项目时,有时LogCat报错: AndroidRuntimeException: You cannot combine custom titles with other title feature...
  • mengweiqi33
  • mengweiqi33
  • 2014-12-23 16:06:57
  • 4441

Cannot Combine Custom Title With Other Title Features

希望定制活动页面的Title,onCreate中代码如下:final Window window = getWindow(); boolean useTitleFeature = false; if(...
  • iefreer
  • iefreer
  • 2012-11-28 18:21:59
  • 2358

android错误之android.util.AndroidRuntimeException: You cannot combine custom titles with other title

报如下错误:android.util.AndroidRuntimeException: You cannot combine custom titles with other title featur...
  • jason0539
  • jason0539
  • 2013-10-23 21:06:36
  • 7366

Android有关自定义标题的问题 You cannot combine custom titles with other title features

在Activity里面添加代码: requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.act...
  • Harbor9999
  • Harbor9999
  • 2014-11-29 10:33:26
  • 1276

Android4.0上 : 关于you cannot combine custom titles with other title features 错误

此问题通常是requestWindowFeature(Window.FEATURE_CUSTOM_TITLE)引起,2.3上应该没有此错误的。 4.0上为什么会报错,推算PhoneWindow.ja...
  • cool_ping
  • cool_ping
  • 2012-04-10 13:15:24
  • 4892

[Bug 笔记]You cannot combine custom titles with other title features

在一个android项目里,如果有一个视图设为全屏无标题,是不是其他的视图也都跟着是全屏无标题? 如果我已经设计一些视图为全屏无标题,而又想设计一些非全屏有标题,这时后该如何做? ...
  • xiaoxiaoshow
  • xiaoxiaoshow
  • 2013-02-05 10:15:43
  • 2176

android PhoneWindow

/*  *  * Licensed under the Apache License, Version 2.0 (the "License");  * you may not use this fil...
  • u010129251
  • u010129251
  • 2015-03-22 18:06:20
  • 1201

PhoneWindow源码

/* * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil...
  • yangzl2008
  • yangzl2008
  • 2012-08-26 10:33:15
  • 2058
收藏助手
不良信息举报
您举报文章:You cannot combine custom titles with other title features问题
举报原因:
原因补充:

(最多只允许输入30个字)