Android input box and text box with scroll bar Scrollview example

We all know that EditText and textview are Android text input boxes and text display boxes, but based on the size of the mobile phone screen, if you need to input more text or display more content, the mobile phone screen is far from enough. Therefore, it is necessary for the mobile phone to have the function of scrolling bar in the text box. In fact, it is very simple to add scrolling bar, Just add a scroll bar control on the text input box or text display box. The control name is Scrollview. Let's compare it below (take textview as an example).

//As can be seen from the above examples, you only need to add a Scrollview control on the periphery of the text control to make the text box have the function of scrolling.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>