Skip to content

Instantly share code, notes, and snippets.

@hangox
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save hangox/984ab73d925df9b5e4be to your computer and use it in GitHub Desktop.

Select an option

Save hangox/984ab73d925df9b5e4be to your computer and use it in GitHub Desktop.
5.0上windowcontentoverlay 要注意的东西
Why does my Action Bar have a shadow on Android Lollipop? I’ve set android:windowContentOverlay to null.
On Lollipop, the action bar shadow is provided using the new elevation API.
To remove it, either call getSupportActionBar().setElevation(0),
or set the elevation attribute in your Action Bar style.
[链接] (http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment