Create Scrolling Text (Marquee) in Android TextView
http://www.viralandroid.com/2015/12/create-scrolling-text-marquee-in-android-textview.html
In this tutorial, you will learn to set marquee effect (scrolling text) in android TextView using XML and little bit java code. A TextView is an android UI component, which displays text in android application in different format and here I am going to use TextView to make scrolling text (marquee).
In android to make scrolling text animation (marquee) is quite easy. We just need to add some attributes in TextView and write one line java code.
Related:
How to Make Scrollable TextView in Android
Android Custom Vertical scrollview Example
Fade In Animation in Android Application
Now, run your marquee example application, to see how it looks like.
Output:
In android to make scrolling text animation (marquee) is quite easy. We just need to add some attributes in TextView and write one line java code.
Related:
How to Make Scrollable TextView in Android
Android Custom Vertical scrollview Example
Fade In Animation in Android Application
Android Marquee Example: Creating Text Scrolling Effect in Android
XML layout File
res/layout/android_marquee_example.xmlJava Activity File
src/AndroidMarqueeExample.javaStrings.xml File
res/values/strings.xmlNow, run your marquee example application, to see how it looks like.
Output:
Android Marquee Example |