Thus, the tent will not work without the obsolete singleLine = "true"?

The mark only works with deprecated singleLine :

 <TextView ... android:ellipsize="marquee" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever"/> 

And does not work with maxLines = 1:

 <TextView ... android:ellipsize="marquee" android:maxLines="1" android:marqueeRepeatLimit="marquee_forever"/> 

and always using mTextView.setSelected(true); , sure,

+6
source share
1 answer

After setting android:maxLines="1" you should also set your inputType . So set android:inputType="text" and this should do the trick.

0
source

Source: https://habr.com/ru/post/1015095/


All Articles