我想在一个Activity
中禁用ActionBar
的阴影效果。如果使用这段代码,将会在整个应用程序中产生变化。
<style name="MyAppTheme" parent="android:Theme.Holo.Light">
<item name="android:windowContentOverlay">@null</item>
</style>
我尝试了此代码,但它没有起作用。
getSupportActionBar().setElevation(0);
有什么建议吗?