我正在开发一个Android应用程序,其中将包含带有文本(+ 50k个字符)的活动。 在添加文本之前,此活动可以正常运行,没有任何问题,但是在添加并运行该活动之后,应用程序将关闭。
您以前解决过类似的问题吗?
答案 0 :(得分:-1)
您应将内容添加到NestedScrollView中,以添加长内容的滚动条。
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<!-- YOUR CONTENT HERE-->
</android.support.v4.widget.NestedScrollView>