Strange issue with android:ellipsize=“end”

前端 未结 5 2224
野的像风
野的像风 2021-02-20 14:53

I am using android:ellipsize=\"end\" in android xml file, & surprisingly I am not getting the layout that I want, the 3 dots(...) are showing but after that

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-20 15:19

    When setting the text for the textview make sure the text is not greater than 750 characters so use txt = theText.substring(0, 750) or something like that before calling settext. This works on the emulator with your feed. and should be enough characters for a 10inch tablet too

提交回复
热议问题