Limit numbers of lines in TextView

后端 未结 7 1307
忘掉有多难
忘掉有多难 2021-02-01 01:14

I have a scrollable textView, and I want to limit the number of lines displayed, however xml properties are not working :



        
7条回答
  •  执念已碎
    2021-02-01 01:59

    I tried as said in accepted answer and others but didn't worked for me, but after adding android:ellipsize="marquee" it's working now..

提交回复
热议问题