Reputation: 819
I'm porting my application to the new Android L. The app works fine except for the Overflow menu that have a glitch as you can see from the photos.
Anyone know how to fix it? Thanks
Upvotes: 3
Views: 477
Reputation: 24124
This has been fixed for a future Android release, but in the meantime you can work around the issue by using a non-opaque popup menu background. The default background in Material is a 2dp rounded rectangle, which will work fine, but if you absolutely need a custom background then you can do something like:
res/drawable/my_menu_background.xml:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="2dp" />
<solid android:color="@color/my_color" />
</shape>
Upvotes: 2