安卓的EditText垂直滚动问题 [英] Android EditText Vertical Scrolling Problem
本文介绍了安卓的EditText垂直滚动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有predefined大小的EditText,如果用户输入更多的文字我不能够滚动的文字,但它可以通过滚动轨迹球,我怎么能解决这个问题。
i have EditText of predefined size ,if user entered more text i am not able to scroll the text ,but it can scroll using track ball,how can i solve this issue
推荐答案
如果您想文本水平滚动,定义你的EditText XML标记:
If you would like the text to scroll horizontally, define in your EditText XML tag:
android:scrollHorizontally="true"
如果您想垂直滚动,定义你的EditText XML标记:
If you would like a vertical scroll, define in your EditText XML tag:
android:scrollbars = "vertical"
希望这有助于。
Hope this helped.
这篇关于安卓的EditText垂直滚动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文