The text of my buttons are getting cutoff in Android when I have made the HeightRequest of the button smaller than the default. The same thing renders normally with the button text centered on iOS. Below is the code and there is an image showing the problem attached. Any help would be appreciated!
var btnSignUp = new Button
{
Text = "Vendor Sign Up",
Font = Font.OfSize ("BenchNine-Regular", 20),
BackgroundColor = Constants.Colors.MainBlue,
TextColor = Color.Black,
WidthRequest = 135,
HeightRequest = 26,
HorizontalOptions = LayoutOptions.CenterAndExpand,
Image = (FileImageSource)FileImageSource.FromFile ("arrow.png"),
};
var btnLogin = new Button
{
Text = "Vendor Login",
Font = Font.OfSize ("BenchNine-Regular", 20),
BackgroundColor = Constants.Colors.MainBlue,
TextColor = Color.Black,
WidthRequest = 125,
HeightRequest = 26,
HorizontalOptions = LayoutOptions.CenterAndExpand,
Image = (FileImageSource)FileImageSource.FromFile ("arrow.png"),
};