android text view text in vertical direction

后端 未结 1 773
独厮守ぢ
独厮守ぢ 2020-12-11 04:22

I have a Textview in which i am showing text 12345 now i want to show text

1
2
3
4
5

I tried rotation<

1条回答
  •  Happy的楠姐
    2020-12-11 04:59

    You could extend TextView to your custom VerticalTextView and override setText() method. In setText implementation you could iterate through text and modify it inserting linebreaks \n. After you finish just set result value to your view.

    0 讨论(0)
提交回复
热议问题