Android 如何在Textview中显示很长的文本
我有listview和ContentTextView。 我尝试在文本视图中显示很长的文本(10.000个字符) 当时,程序正在运行。 textview中没有文本 但是,当我仅将文本设置为2000个字符时,textview将显示文本 如何在一个文本视图中显示10.000个字符 以下是我的XML:Android 如何在Textview中显示很长的文本,android,text,android-listview,textview,Android,Text,Android Listview,Textview,我有listview和ContentTextView。 我尝试在文本视图中显示很长的文本(10.000个字符) 当时,程序正在运行。 textview中没有文本 但是,当我仅将文本设置为2000个字符时,textview将显示文本 如何在一个文本视图中显示10.000个字符 以下是我的XML: <TextView android:id="@+id/message" android:layout_width="wrap_content"
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="3dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:autoLink="all"
android:maxEms="1000"
android:maxLength="10000"
android:maxLines="1000"
android:singleLine="false"
android:text="Message"
android:textColor="@color/Black"
android:textSize="@dimen/txt_message" />
文本是静态的还是动态的文本是动态的。为什么要设置maxLength和maxLines?您可能需要滚动查看其余的?这些字符串
是否来自webservice
?