标签:
错误:requestFeature() must be called before adding content
原因:
Android去掉标题栏点菜单键程序崩溃
在安卓以前的版本中,我们会使用以下两种方式来去掉顶部自带的标题栏:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar">
<?xml version="1.0" encoding="UTF-8" ?> <resources> <style name="notitle"> <item name="android:windowNoTitle">true</item> </style> </resources>
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/notitle">
requestFeature() must be called before adding content
标签:
原文地址:http://www.cnblogs.com/H-BolinBlog/p/5504674.html