Android TextView 3行与横向滚动
问题描述:
我有一个textview中的长文本。我想用水平滚动显示全文3行。
例如,这是手机屏幕:Android TextView 3行与横向滚动
!-------------! ! ! ! ! ! ! ! ! ! ! ! ! !-------------! !this is the text i want 3 lines and !with an horizontal scroll and carriages !return must be auto to fit in 3 lines max !<-- scroll --> !-------------!
尝试一切我能不成功......
答
- 从字符串手动进行3行文本(用“\ n”替换3个空格) 。
- 把你的TextView与宽度= “WRAP_CONTENT” 在HorisontalScrollView
你可以试试'webview'代替 – 2015-02-08 23:54:05