我正在为Android 3.0+开发一个应用程序,我想通过删除标题来个性化操作栏,我可以完成,我的问题是我也丢失了操作栏的背景,我只想删除标题并保留剩余的样式。这是我目前正在使用的:
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="android:actionBarStyle">@style/ActionBarNoTitle</item>
</style>
<style name="ActionBarNoTitle" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:displayOptions">showHome|useLogo</item>
</style>
</resources>
我不希望更改活动代码来完成此操作。