I have this menu when the user clicks on the ShareActionProvider:
How can I change its background color. I suppose I have to style it but I cannot find anywhere how.
I have this menu when the user clicks on the ShareActionProvider:
How can I change its background color. I suppose I have to style it but I cannot find anywhere how.
You might want to take a look at the source code, if there is no documentation on how to apply a style. I haven't actually tried to style the ShareActionProvider, but I got quite some clues from the code:
?attr/activityChooserViewStyle
applied as the style referencelooking into themes.xml yields in line 75:
<item name="activityChooserViewStyle">@style/Widget.AppCompat.ActivityChooserView</item>
Would love to hear if this works, as I might be in the same situation soon ;)
So, what I did to style it was edit our styles.xml.
Of course, these styles have to be referenced in the layout file where Toolbar is referenced:
I have the weird feeling, though, that styles should have a parent style. But it works out like this.
Thanks to @Brian who pointed me in the right direction.