android自定义标题栏时候you cannot combine custom titles with other title
来源:互联网 发布:淘宝网多肉植物 编辑:程序博客网 时间:2024/05/19 23:58
在添加自定义的标题栏时,报错,you cannot combine custom titles with other titles...
AndroidManifest.xml中:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.umosleep"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/mystyle" >
<activity
android:name="com.umosleep.activity.MainTabActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
mystyle.xml:
<resources>
<style name="CustomWindowTitleBackground">
<item name="android:background">#5baffd</item>
</style>
<style name="mystyle" parent="android:Theme">
<item name="android:windowTitleSize">50dp</item>
<item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackground</item>
</style>
</resources>
Mainactivity.java:
onCreate()函数调用:
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.activity_bind);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.titlebar_bind);
- android自定义标题栏时候you cannot combine custom titles with other title
- Android自定义标题栏异常You cannot combine custom titles with other title features
- 解决自定义标题栏You cannot combine custom titles with other title features问题
- Android 4.0后,自定义Title报错 You cannot combine custom titles with other title feature
- Android 4.0后,自定义Title报错 You cannot combine custom titles with other title feature
- android自定义title出现 You cannot combine custom titles with other title features
- 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 feature
- You cannot combine custom titles with other title feature..
- 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 feature
- 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
- AndroidRuntimeException: You cannot combine custom titles with other title feature
- iOS编程Cookbook第19章最后一个例子不能正常工作的解决办法
- java基础01
- 常见协议RFC对应表
- 新手引导的实现原理
- java实例化代码------------------监听事件
- android自定义标题栏时候you cannot combine custom titles with other title
- 使用Delphi调用条形码控件BarTender打印标签
- UICollectionView不能拖拽或者刷新抖动
- 深度学习anaconda+theano使用框架配置
- ccnu_2015级训练赛(1)题目解答
- 工作中最让程序员疯狂的5件事
- Activiti 简易教程一 version5.10
- GitHub衍生工具hub、Travis CI、Converalls、Jenkins
- C++:类与对象