Skip to content

wolfsbane9513/Android-Lib-VerticalMarqueeTextView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vertical Marquee TextView for Android

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

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.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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.5%
  • Java 0.5%