A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Strange Wrapping Patterns
Nathan Sokalski
4,111
Reputation points
I have a TextView that is doing strange wrapping & not displaying all text. Here is the code & screenshots for 2 of the scenarios:
android:text="Remove Visits Before"
android:text="Remove Visits Before Visits Before1 2 Before3 4 Before5 6 Before7 8 Before9 10 Before11 12 Before13 14 Before x y z Something 1 2 3 4 5 6 7 8"
Notice that in the first scenario, the last word is not displayed or wrapped, yet the second scenario does wrap, but still does not display all the text. Both the TextView & the parent (the orange rectangle, which is a LinearLayout) have wrap_content for both layout_width & layout_height. Why is a simple TextView doing such strange (and different) things when displaying basic text?
Developer technologies | .NET | Xamarin
Developer technologies | .NET | Xamarin
Sign in to answer