80,350
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="UTF-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical"
android:fadingEdge="vertical"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
androidrientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/file_txt"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="380px"
android:text="我现在要实现一个textview,这个textview将显示某个文件的内容,因为文件中每行的长度太长,所以会出现本身是一行的内容分两行来显示,所以想同时加入水平滚动条和垂直滚动条,想这样可能会解决这样的显示问题,xml文件如下所示"
android:textColor="#ffffffff"
>
</TextView>
</LinearLayout>
</ScrollView>