在项目中将actionbar使用的布局文件背景色改成了项目的主题色,运行后actionbar下面有一条黑线。
解决办法只需要在style.xml中修改项目主题中actionBarStyle使用自定义的样式:
<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/actionbar</item>
</style>
<style name="actionbar" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="android:background">@color/theme_title_color</item>
</style>