机器人 - 如何让一个TextView滚动? [英] android - how to make a textview scroll?

查看:168
本文介绍了机器人 - 如何让一个TextView滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实即时显示一些数据在一个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>

这篇关于机器人 - 如何让一个TextView滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆