Android异常-AndroidRuntimeException: You cannot combine custom titles with other title features
来源:互联网 发布:淘宝贷款分12期 编辑:程序博客网 时间:2024/06/05 18:53
异常信息如下:
Caused by: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features06-19 14:47:11.777: E/AndroidRuntime(21173): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:310)06-19 14:47:11.777: E/AndroidRuntime(21173): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3364)06-19 14:47:11.777: E/AndroidRuntime(21173): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3681)06-19 14:47:11.777: E/AndroidRuntime(21173): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:368)06-19 14:47:11.777: E/AndroidRuntime(21173): at android.app.Activity.setContentView(Activity.java:2145)...
问题原因:
在Activity的onCreate方法中有如下语句:
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.activity_offline_map);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.offline_title_bar);
在Manifest文件中,该Activity对应的声明语句中 增加 android:theme属性
<activity android:name="com.example.mdsMap.offline.OfflineActivity" android:theme="@style/YourTitleBarStyle"> </activity>
阅读全文
0 0
- Android异常-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 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.
- AndroidRuntimeException: You cannot combine custom titles with other title feature
- Android运行异常处理: You cannot combine custom titles with other title features
- Android自定义标题栏异常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
- 解决ora-01555
- 解决source insight的context窗口丢失的方法
- C++实现线性链表
- android自定义View探索5(onMeasure深入分析二LayoutParams)
- jupyter软件的安装
- Android异常-AndroidRuntimeException: You cannot combine custom titles with other title features
- 写写Android的微信支付!
- TCP相关信息
- 静态网页与动态网页
- 判断CString里面的字符串是否全为数字构成
- React Native 连接sqlite数据库
- 五角星符号怎么打出来
- nginx下面CodeIgniter rewrite规则
- Java Web基础——自定义标签和JSTL