我应该如何在android应用程序中显示文本字段中的大数据而不使用“&引用;或;阅读更多“;
我正在开发一个应用程序,我必须在其中记录任务。问题在于,显示包含大量数据的任务会破坏UI。已经存在的解决方案是使用“…”,当用户点击这些点时,一个新的屏幕将显示所有数据。但我不想用它。另一个选项是使用“v”箭头,当用户触摸它时,字段会放大。除了这两个问题,还有其他解决办法吗。更可取的做法是在同一页上显示文本。使用此选项:-我应该如何在android应用程序中显示文本字段中的大数据而不使用“&引用;或;阅读更多“;,android,user-interface,Android,User Interface,我正在开发一个应用程序,我必须在其中记录任务。问题在于,显示包含大量数据的任务会破坏UI。已经存在的解决方案是使用“…”,当用户点击这些点时,一个新的屏幕将显示所有数据。但我不想用它。另一个选项是使用“v”箭头,当用户触摸它时,字段会放大。除了这两个问题,还有其他解决办法吗。更可取的做法是在同一页上显示文本。使用此选项:- <ScrollView android:layout_width="wrap_content" android:layo
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/txtView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="AAAAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCDDDDDDDDD" />
</ScrollView>
根据我的说法,您有两种选择:-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ScrollView
android:id="@+id/ScrollView01"
android:layout_height="1fill_parent"
android:layout_width="fill_parent">
<TextView
android:id="@+id/TEXT_VIEW1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view" />
<TextView
android:id="@+id/TEXT_VIEW2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view This is text view" />
</ScrollView>
</LinearLayout>
您可以在scrollview中使用textarea。非常感谢…如果您能给出一个具有此视图的任何应用程序的示例,那么这将非常有帮助检查我的答案,您可以在scrollview中添加任意数量的TextView。谢谢…您是否有给出这些实现的应用程序示例。我只是想先看看