Method for realizing vertical scrolling effect in Android textview

This article describes the method of realizing vertical scrolling effect in Android textview. Share with you for your reference, as follows:

In textview, if the text is very long, you may need to achieve the effect of vertically scrolling the text. Here, you need to set the following properties for textview in the XML layout file.

Where x is outsideoverlay or insideoverlay.

Where X represents the time from the appearance to disappearance of the scroll bar, and the unit is milliseconds.

The following is a complete XML code example.

The operation effect is shown in the figure below.

More readers interested in Android related content can view the special topics of this site: summary of Android scroll bar and scroll operation skills, summary of Android graphics and image processing skills, introduction and advanced tutorial of Android development, summary of Android debugging skills and solutions to common problems, summary of Android multimedia operation skills (audio, video, recording, etc.) Android basic component usage summary, Android view skills summary, Android layout skills summary and Android control usage summary

I hope this article will help you in Android programming.

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
分享
二维码
< <上一篇
下一篇>>