机器人 - 如何让一个TextView滚动?机器人、TextView

2023-09-06 16:15:55 作者:王的风范

其实即时显示一些数据在一个TextView,但其一半的数据是走出去的屏幕,这样的我需要帮助,使一个TextView滚动或任何其他事情,可以向下滚动屏幕。

Actually im showing some data in a textview but its half of the data is going out of the screen so i need help to make a textview scroll or any other thing that can scroll down the screen.

任何帮助将是AP preciated!

Any help would be appreciated!

推荐答案

把你的TextView里面滚动型的XML这样的:

Put your TextView inside ScrollView in XML like:

 <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <TextView
            android:id="@+id/txt2"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="txt2"/>

    </ScrollView>
 
精彩推荐
图片推荐