Closed acaliaro closed 5 years ago
Hi @robinmanuelthiel
Do you have some news about "alignment" problem?
I have tested again in a real device and it works
But using the same code on a popup https://github.com/rotorgames/Rg.Plugins.Popup I have the problem
This is the code I use
public static FlexButton CreateFlexButton(string text = null)
{
FlexButton flexButton = new FlexButton();
if (!String.IsNullOrEmpty(text))
flexButton.Text = text;
flexButton.HorizontalOptions = LayoutOptions.Center;
flexButton.WidthRequest = 300;
flexButton.HeightRequest = 65;
flexButton.CornerRadius = 10;
flexButton.BorderColor = Color.FromHex("#49516F");
flexButton.HighlightBorderColor = Color.FromHex("#6279B8"/*"#f28e02"*/);
flexButton.ForegroundColor = Color.FromHex("#ffffff");
flexButton.HighlightForegroundColor = Color.FromHex("#49516F");
flexButton.BackgroundColor = (Color)Application.Current.Resources["MyColor"];
flexButton.HighlightBackgroundColor = (Color)Application.Current.Resources["FlexColorBackground"];
flexButton.FontSize = 24;
return flexButton;
}
Thanks
Can you please check, if this has been fixed in version 0.9.0? I completely re-build the centering logic. https://www.nuget.org/packages/Forms.Controls.FlexButton/0.9.0
Thanks @robinmanuelthiel . For this project I have used native Button because of this problem… I will take a look in the next project Thanks again
Describe the bug I have different output creating FlexButton in code VS xaml
To Reproduce public static FlexButton CreateFlexButton(string text = null) {
I think I should see text center aligned and the shadow on the bottom of each button, as I see in your xaml example
Expected behavior center text and shadow at the bottom
Screenshots I have this output on a Nexus 7.1 Android API 25 emulator
Please complete the following information: