我正在开发一个应用程序,在其中我必须记录任务。问题是,显示包含大量数据的任务会扰乱UI。已经存在的解决方案是使用"...“当用户点击这些点时,一个新的屏幕将显示所有数据。但我不想用它。另一种选择是使用"v“箭头,当用户触摸它时,字段会放大。除了这两个,还有没有别的解决方案。更可取的是在同一页上显示文本。
发布于 2014-04-21 09:48:56
USe this:-
<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>
发布于 2014-04-21 09:52:18
根据我的说法,你有两个选择:
带有textView的
希望它能有所帮助:)
发布于 2014-04-21 10:50:48
请检查以下内容:
<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>
https://stackoverflow.com/questions/23194627
复制相似问题