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

Xamarin.Forms on android java.lang.StackOverflowError in complex layout

$
0
0

[AndroidRuntime] java.lang.StackOverflowError
[AndroidRuntime]    at android.text.TextLine$SpanSet.init(TextLine.java:1059)
[AndroidRuntime]    at android.text.TextLine.handleRun(TextLine.java:1157)
[AndroidRuntime]    at android.text.TextLine.drawRun(TextLine.java:570)
[AndroidRuntime]    at android.text.TextLine.draw(TextLine.java:335)
[AndroidRuntime]    at android.text.Layout.draw(Layout.java:426)
[AndroidRuntime]    at android.text.BoringLayout.draw(BoringLayout.java:400)
[AndroidRuntime]    at android.widget.TextView.onDraw(TextView.java:5307)
[AndroidRuntime]    at android.view.View.draw(View.java:11120)
[AndroidRuntime]    at android.view.View.getDisplayList(View.java:10559)
[AndroidRuntime]    at android.view.ViewGroup.drawChild(ViewGroup.java:2864)
[AndroidRuntime]    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2503)
[AndroidRuntime]    at android.view.View.getDisplayList(View.java:10557)
[AndroidRuntime]    at android.view.ViewGroup.drawChild(ViewGroup.java:2864)

Google say to me "Perhaps you have too many nested layouts." Ok, but xamarin help me do it. All views and layouts multiple two (Label, for example, is in android view + textview). And all my app is in single activity. What can i do? Using only RelativeLayout or AbsoluteLayout and do all layout work myself?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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