Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1005 Bytes

File metadata and controls

46 lines (34 loc) · 1005 Bytes

AutoScrollTextView

Sample Android application show how to set auto scroll in text view in android.

Usage

To make a auto scroll in your text view, you must use the following properties in your XML.

Properties:

  • ellipsize
  • focusable
  • focusableInTouchMode
  • marqueeRepeatLimit
  • scrollHorizontally
  • singleLine

XML

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:ellipsize="marquee"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:marqueeRepeatLimit="marquee_forever"
    android:scrollHorizontally="true"
    android:singleLine="true"
    android:text="@string/your_value"
    tools:ignore="HardcodedText" />

Image Result

Capture Project

LICENCE

AutoScrollTextView by Lopez Mikhael is licensed under a Apache License 2.0.