android使用自定义标题时提示“you cannot combine custom titles with other  ”
来源:互联网 发布:linux 移动文件 编辑:程序博客网 时间:2024/05/08 03:37
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.activity_main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_layout);
}
}
通过安卓自定义修改标题栏的时候,出现了一个问题“you cannot combine custom titles with other title features”
接着程序变崩了。
解决办法:在manifest文件中,修改android:theme="@style/android:Theme.Light"
这样便能正常运行了。
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.activity_main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_layout);
}
}
通过安卓自定义修改标题栏的时候,出现了一个问题“you cannot combine custom titles with other title features”
接着程序变崩了。
解决办法:在manifest文件中,修改android:theme="@style/android:Theme.Light"
这样便能正常运行了。
0 0
- android使用自定义标题时提示“you cannot combine custom titles with other  ”
- Android自定义标题时出现You cannot combine custom titles with other title features
- 安卓自定义标题时候you cannot combine custom titles with other 
- Android有关自定义标题的问题 You cannot combine custom titles with other title features
- 安卓自定义标题时候you cannot combine custom titles with other
- 安卓自定义标题时候you cannot combine custom titles with other
- 关于 绑定自定义标题 You cannot combine custom titles with other title feature
- 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自定义标题栏时候you cannot combine custom titles with other title
- Android自定义标题栏异常You cannot combine custom titles with other title features
- android自定义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 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
- 无废话ExtJs 入门教程十七[列表:GridPanel]
- android笔试题
- Android模拟表单提交文字和图片(HttpClient AND HttpURLConnection)
- 聊聊外企的英语-国家 口音 电话会议
- iOS-状态栏设置(隐藏,颜色)
- android使用自定义标题时提示“you cannot combine custom titles with other  ”
- android.view.ViewConfiguration
- Java Web自定义邮箱服务器,实现前端跨域访问
- You have not concluded your merge (MERGE_HEAD exists) git拉取失败
- 使用python操作elasticsearch实现监控数据及kibana分析
- swift-基本操作01-赋值取余运算符
- 安卓闪屏java源代码
- <<Android源码设计模式解析与实战>>读书笔记----- Android NDK开发学习
- “sqlHelper.sqlHelper”的类型初始值设定项引发异常。