You cannot combine custom titles with other title features
来源:互联网 发布:产品推广软件 编辑:程序博客网 时间:2024/04/30 06:00
问题的原因是你为一个activity设置了两个title,,所以这个问题在tab中出现的频率较高。
【点击下载 科学上网软件(能上youtube、facebook,享受google服务)】
一般可能是在具体的activity中设置cutsom title的属性,这样在tab中的activity(显示应用的名称的)和这个custom title(自定义的)就是两个了。
解决办法是在tab所在的activity中设置custom title.而不要再具体的activity中设置。
以下代码添加到主TabActivity中
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
- setContentView(R.layout.main);
- getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
- }
- You cannot combine custom titles with other title features
- You cannot combine custom titles with other title features
- You cannot combine custom titles with other title features
- You cannot combine custom titles with other title features
- You cannot combine custom titles with other title features
- You cannot combine custom titles with other title features
- You cannot combine custom titles with other title features
- You cannot combine custom titles with other title features
- android自定义title出现 You cannot combine custom titles with other title features
- Android4.0上 : 关于you cannot combine custom titles with other title features 错误
- 报错android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
- [Bug 笔记]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
- 关于报错You cannot combine custom titles with other title features
- 利用(while(getchar() != '\n');)消除回车
- Calendar
- webview 状态加载开始时显示进度条
- maven已有工程
- 常用个人网站及博客链接
- You cannot combine custom titles with other title features
- XAML关键字
- MYSQL启动后报:ERROR! The server quit without updating PID file错误的问题解决
- RAID和LVM综合使用!
- 对象
- 多看看的启迪故事
- 在Labs开会
- Android运行:Error generating final archive
- 解决Ubuntu下使用adb的no permissions问题