Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 60392 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Created attachment 25466 [details]
Repro solution and screencasts
It seems that Xamarin.Forms 22.214.171.12442 brought along some style changes for buttons in Android. I'm unsure if this was intended or not, but in any case, when setting the background color to transparent there's a shadow that seems impossible to remove. 126.96.36.1992 doesn't have this problem. The bug is also present in 188.8.131.5271-pre2.
Repro solution and screencasts attached. Note that if you change the Xamarin.Forms version, you might have to clean/rebuild to see the changes (I had to).
For the time being, does using a style such as follows help?
<style name="NoShadowButton" parent="android:style/Widget.Button">
The issue needs to be discussed internally with regards to the expected behavior.
How do I use that style for all buttons? I haven't messed around too much with Android styles yet, so I'm a bit lost there.
I tried that style, and while it removes the shadow, it does so for ALL buttons, which is certainly not desired for normal buttons. It also makes all buttons look worse in other ways, e.g. removes the uppercasing of button text.
This is affecting me too. Also looks like setting BorderColor no longer has any effect, with or without the style XML from Paul above.
Is there any update on this? The bug seems to prohibit using flat-style buttons on Android, which is a core part of Material Design, so this seems fairly serious.
Looking for an update here too. this is getting really annoying to deal with... is there any workarounds?
Here's a workaround using a dead simple custom renderer on Android and a simple XAML implicit style for iOS support: