Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Label display problem

$
0
0

Hi,

I need to display a very long text (about 8k characters). My idea was to put a word wrapping label in a scroll view. On iOS, everything works fine. On Android, the label is cropped after about 5000 characters. If I debug label text property, the text is complete. But on the screen, it's just cut after that limit. I have tried to set the label height manually to ensure it's not a size calcultation problem. But even if height is larger, the text is not shown. Is this a bug or a known limitation of the label on Android? The only solution I found so far is to split the text in two labels. But that's just a workaround.

[EDIT]After some additionnal tests, it seems the problem is related to label height. If I use a smaller font size, I can view more text. But the height of the label is the same. What is strange is that if I set a bigger HeightRequest, the text does not fill the additional space. As if the label doesn't draw itself below a given height. The problem is the same if I use Text or FormattedText.[/EDIT]

Jacques


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>