我的应用程序使用的是我使用 Android Action Bar Style Generator 制作的自己的样式(样式兼容性 = AppCombat)。 Actionbar 和选项卡的颜色相同,但问题是它们之间有阴影。我怎样才能去除这个阴影?
<style name="MyAppTheme" parent="android:Theme.Holo.Light">
<item name="android:windowContentOverlay">@null</item>
“android:windowContentOverlay”正在移除选项卡下方而非上方的阴影。
最佳答案
好的,这是 solution通过 Audren Teissier这对我有用:
It's because you are using a drawable instead of a color.look for something like this:
<style name="MyActionBar"
parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@color/yourcolor</item>
</style>
Replace the drawable by a color like above and it should go away.
关于android - 移除 Actionbar 和 Tab 之间的阴影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25352597/