TextView cuts off text when it is long enough

后端 未结 6 1364
执笔经年
执笔经年 2021-01-31 11:16

I have strange problem with TextView, it cuts off part of the text at the end. My layout looks like



        
6条回答
  •  爱一瞬间的悲伤
    2021-01-31 11:42

    Yes there are some attributes you need to set, but first let us know what type of textview do you want exactly, single line or multi line?

    There are some attributes you can take care of:

    android:singleLine="true"  // or false
    android:ellipsize="marquee"   // must check
    android:lines="1"
    

提交回复
热议问题