【发布时间】:2013-03-10 15:15:38
【问题描述】:
我在我的应用程序中使用了支持库的最新 ActionBarSherlock 扩展。当我在模拟器 4.2 和 android 4.2 的设备上运行应用程序时,我发现视图和操作栏本身的外观很奇怪。请看一下模拟器的屏幕截图。我们可以看到 ListView 的每一行分隔符中都出现了蓝线,并在主页图标下划线。
小右箭头也有下划线,也没有正确缩放。 从这个角度来看,它在 android 2.2 的模拟器中显示良好
我使用主题的方式是:
ManifestFile.xml:
android:theme="@style/AppThemeWithoutTitle"
和styles.xml:
<style name="AppThemeWithoutTitle" parent="Widget.Sherlock.ActionBar">
<item name="actionBarStyle">@style/MyActionBarWithoutTitle</item>
<item name="android:actionBarStyle">@style/MyActionBarWithoutTitle</item>
</style>
<style name="MyActionBarWithoutTitle" parent="Widget.Sherlock.ActionBar">
<item name="android:displayOptions">useLogo|showHome</item>
</style>
我该如何解决这个问题?
【问题讨论】:
标签: android android-actionbar actionbarsherlock android-theme