I've converted a project from Xamarin to .Net MAUI. MAUI has many issues, but one of the most annoying is the fact that HorizontalTextAlignment
set to Center
is not working in Android. For labels that are only a single line the regular HorizontalAlignment is working, but for multiple line labels it is not a working solution:
In the screenshot the two header labels are centered using HorizontalAlignment on the VisualElement, but for the longer text below this is not working. Event though the label element is centered, the text inside is not center aligned.
Does anyone have a solution?
P.S. HorizontalTextAlignment
is working in iOS, and it is also working in my Android emulator when I manipulate it in Hot Reload.