Marquee using maxLines

后端 未结 2 1583
南方客
南方客 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:10

    In XML

    
    

    In Java

    ((TextView)findViewById(R.id.text_marquee)).setHorizontallyScrolling(true);
    ((TextView)findViewById(R.id.text_marquee)).setSelected(true);
    

提交回复
热议问题