I have this page in an application where I need some of the components of the Editor to be placed in a specific place and in a specific place. However, when I set a small HeightRequest value, editors do not display text on android.
I tried setting up FontSize and Margin to show them correctly, but none of them have any effect.
Here is a screen of iOS:
and All Android:
.
What should I do to have the desired effect on Android?
EDIT:
I'm talking about the part that says “Formação Acadêmica” I installed HeightRequest, but I assume that since this is a small HeightRequest, the text is disabled in android.
here is the code that creates this part:
Editor editor = new Editor();
if (atributo.tipo.Equals(Atributo.NUMERICO) || atributo.tipo.Equals(Atributo.INTEGER)) {
editor.Keyboard = Keyboard.Numeric;
}
if (atributoDoc.valor != null) {
editor.Text = atributoDoc.valor;
}
//(...)
editor.SetBinding(IsEnabledProperty, "IsEnabled");
editor.BindingContext = container;
editor.BackgroundColor = Color.FromRgba(1, 1, 0, 0.4);
editor.WidthRequest = atributoDoc.largura * ratio;
editor.HeightRequest = atributoDoc.altura * ratio;
editor.FontSize = editor.FontSize * ratio;
Frame frame = new Frame();
frame.AnchorX = frame.AnchorY = 0;
frame.OutlineColor = Color.Black;
frame.Padding = 0;
frame.Content = editor;
frame.HasShadow = false;
Device.BeginInvokeOnMainThread(() => {
container.Children.Add(frame, Constraint.Constant(atributoDoc.posicaoX * ratio), Constraint.Constant(atributoDoc.posicaoY * ratio + contImage.Y));
});