0

I'm building an application that takes data and appends the data in a textview. I want the text to be rotating in a vertical style(just as automatic horizontal scrolling ,but I need it to be in vertical style). Can anyone help me in this? Eg ihave 5 data i would have arranged it in this fashion and the text view layout can show only 5 lines at a time the following should be in vertical style


1 data1
2 data2
3 data3
4 data4
5 data5

when next data comes data 6 :
1 data1
2 data2
3 data3
4 data4
5 data5
6 data6

i should show it as :
6 data6
1 data1
2 data2
3 data3
4 data4
5 data5

it should be rotating
5 data5
6 data6
1 data1
2 data2
3 data3
4 data4

like this

4

1 回答 1

0

我不清楚你想说什么,但如果你想让你TextView垂直滚动试试这个

在文本视图的 XML 中

android:scrollbars="vertical"

在 JAVA 中

t.setMovementMethod(new ScrollingMovementMethod());

TextView

于 2012-12-11T06:34:12.783 回答