I try to show a flat button like it is described in the material design guidelines.
In my naive way of thinking I tried to create a custom renderer which inherits from
Xamarin.Forms.Platform.Android.AppCompat.ButtonRenderer. This got me an
Android.Support.V7.Widget.AppCompatButton, but the Elevation on that control is already 0. How can I remove the shadow?
The simplest standard Android solutions made a
But how do I change the style of the existing AppCompatButton?
Other more complicated examples used many xml files to re-create the ripple effect, pressed state, ... But the standard button can already do this, so all I want is change that AppCompatButton to remove the shadow.
I could just use a Xamarin.Forms.Label, but this has no padding, no ripple effect, no pressed state. I don't want to reinvent the wheel.