I am trying to set a custom background color to the overflow menu. However, I am unable to do so. This is what I tried:

<resources>

<style name="TranslucentTheme" parent="android:Theme.Holo.Light.DarkActionBar">
    <item name="android:actionBarStyle">@style/TranslucentActionBar</item>
    <item name="android:windowActionBarOverlay">true</item>
    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowTranslucentNavigation">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:popupMenuStyle">@style/PopupMenu</item>
</style>

<style name="PopupMenu" parent="@android:Widget.Holo.Light.PopupWindow">
    <item name="android:popupBackground">@color/transparent_black</item>
</style>

<style name="TranslucentActionBar" parent="android:Widget.Holo.Light.ActionBar.Solid.Inverse">
    <item name="android:background">@null</item>
    <item name="android:logo">@drawable/actionbar_logo_space</item>
</style>

</resources>

What am I doing wrong?

Related posts

Recent Viewed