[英]Remove shadows below actionbar appcompat
Is it possible to remove the shadow below the Actionbar
? 是否可以删除Actionbar
下面的Actionbar
?
I am using the AppCompat v7 library. 我正在使用AppCompat v7库。
This works with AppCompat: 这适用于AppCompat:
<style name="MyAppTheme" parent="Theme.AppCompat.Light">
<item name="actionBarStyle">@style/MyActionBarTheme</item>
</style>
<style name="MyActionBarTheme" parent="Base.Widget.AppCompat.Light.ActionBar.Solid">
<item name="elevation">0dp</item>
</style>
Add this in style.xml : 在style.xml中添加:
<style name="MyTheme" parent="Theme.Sherlock">
....
<item name="windowContentOverlay">@null</item>
<item name="android:windowContentOverlay">@null</item>
....
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.