0

Is there any way to enable text marquee when text is shorter than textview?

Ihor DIM
  • 689
  • 1
  • 10
  • 22

1 Answers1

0

Set the elipsize property in TextView to marquee in the xml file

android:ellipsize="marquee"

and then create an object for the TextView in your onCreate method of your activity and set the setSelectedProperty to true

textview1.setSelected(true)

Source:Previous Stackoverflow answer

Community
  • 1
  • 1
Avinash
  • 174
  • 1
  • 1
  • 8