Marquee using maxLines

后端 未结 2 1587
南方客
南方客 2021-01-19 15:26

How can I have a marquee using MaxLines instead of SingleLine ?

This is my TextView :



        
2条回答
  •  遥遥无期
    2021-01-19 16:31

    You can try using this :

    android:maxLength = "10"
    

    OR

    After setting android:maxLines="1", you have to set your inputType too. So, set your android:inputType="text" and that should do the trick.

提交回复
热议问题