哈哈,我刚才也被困在这一点上,所以很高兴我可以为您提供解决方案,至少对我有用:)
您想要做的是在values / styles.xml中定义一个新样式,如下所示
<resources> <style name = "AppTheme" parent = "android:Theme.Holo.Light.DarkActionBar"> <!-- Customize your theme here. --> </style> <style name = "NoActionBar" parent = "@android:style/Theme.Holo.Light"> <item name = "android:windowActionBar">false</item> <item name = "android:windowNoTitle">true</item> </style></resources>
只有NoActionBar样式对您来说才有意义。最后,您必须在AndroidManifest.xml中将设置为您的应用程序的主题,因此它看起来像这样
<application android:allowBackup = "true" android:icon = "@drawable/ic_launcher" android:label = "@string/app_name" android:theme = "@style/NoActionBar" <!--This is the important line--> > <activity [...]
希望对您有所帮助,如果没有,请告诉我。



