Skip to content
This repository has been archived by the owner on May 6, 2018. It is now read-only.

ayltai/Android-Lib-VerticalMarqueeTextView

Repository files navigation

Vertical Marquee TextView for Android

Download Build Status CircleCI Codeship Status for ayltai/Android-Lib-VerticalMarqueeTextView Build Status BuddyBuild

A custom TextView with vertical marquee effect.

Screenshot-1  Screenshot-2  Screenshot-3

Features

  • Automatically start marquee effect when the TextView is added to a view.
  • Customizable marquee speed
  • Easy to extend and customize

Installation

repositories {
    jcenter()
}

dependencies {
    compile 'android.lib.verticalmarqueetextview:VerticalMarqueeTextView:+'
}

How to use

This project includes an activity_example.xml to show how to use this library using XML declaration. An ExampleActivity is also included, which, however, is basically empty because you don't need to write any code!

Here is the example layout that generates the above screenshots:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:example="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:layout_gravity="center_horizontal"
        android:scaleType="centerInside"
        android:src="@android:drawable/sym_def_app_icon" />
    <android.lib.widget.verticalmarqueetextview.VerticalMarqueeTextView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:layout_gravity="center_horizontal"
        example:marqueeSpeed="25"
        example:textSize="20dp"
        example:textColor="@android:color/white"
        example:textStyle="bold"
        example:text="The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog." />
    <View
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1" />
</LinearLayout>

About

A custom TextView with vertical marquee effect

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages