Skip to content

Android library of custom view for implementing marquee feature.

Notifications You must be signed in to change notification settings

potterhsu/MarqueeTextView

Repository files navigation

MarqueeTextView

Android library of custom view to implement marquee feature.

Features

  1. Fragment based, you can easily use marquee fragment in your layout.
  2. Smooth, the text is slided by android animation.
  3. Unlimited text size, since our approach will split text into multiple parts.

MarqueeTextView Illustration

Setup

  1. In root build.gradle:
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
  1. In target module build.gradle
dependencies {
  compile 'com.github.potterhsu:MarqueeTextView:2.0'
}

Usage

  1. Initialize and automatically start
private MarqueeTextFragment marqueeTextFragment;
marqueeTextFragment = new MarqueeTextFragment();
marqueeTextFragment.setMarqueeInfo(
        new MarqueeTextFragment.MarqueeInfo("Some Text", Color.BLUE, 0.5f)
);
  1. Stop
marqueeTextFragment.stopMarquee();
  1. After stopping, you may want to start again
marqueeTextFragment.startMarquee();

About

Android library of custom view for implementing marquee feature.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages