textview cutting off a letter in android

前端 未结 11 2345
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-18 12:56

\"http://dl.dropbox.com/u/24856/Screenshots/android/cutoff.png\"

this is a screen shot from my android. the text is

相关标签:
11条回答
  • 2021-02-18 13:33

    Ok this is pretty strange but I changed from android:maxLines="1" to android:singleLine="true" and now the text is not getting cut off.

    0 讨论(0)
  • 2021-02-18 13:36

    none of the mentioned suggestions work, ended up with a hacky solution which is adding a white space after the last italicized character

    0 讨论(0)
  • 2021-02-18 13:39

    I fixed it with setting the width of TextView to fill_parent instead of wrap_content...

    0 讨论(0)
  • 2021-02-18 13:39

    could be the padding, try setting that to 0dp

    also is there anything else in the layout?

    0 讨论(0)
  • 2021-02-18 13:39

    the problem here is, the italic property. You have to set a particular width for your textview.

    0 讨论(0)
提交回复
热议问题