The button views on Xamarin Forms seem to get extra padding applied when deployed to Android. I have set Resources/values/styles.xml under my Android project to have all spa
Try this:
In your Android Project open your Styles.xml
Inside the MyTheme.Base
style (I am assuming is called like this based on the default Xamarin.Forms template) add the following line:
- @style/MyButton
Create a new style with name MyButton
In the Drawable folder add a new XML file called button_ripple.xml
and paste the following code:
-
-
This file is necessary because when the background of a button in Android is changed the ripple effect (the effect when tapping on it) is lost.
If you don't care about the effect go back to the style file and the MyButton
style can be just something like this:
This might help you without CustomRenderers.-