Loading...

Create Scrolling Text (Marquee) in Android TextView

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

Android Marquee Example: Creating Text Scrolling Effect in Android


XML layout File

res/layout/android_marquee_example.xml

Java Activity File

src/AndroidMarqueeExample.java

Strings.xml File

res/values/strings.xml

Now, run your marquee example application, to see how it looks like.

Output:

Create Scrolling Text (Marquee) in Android TextView
Android Marquee Example

Tutorial 7612066996803026471
Home item