Android TextView's subscript being clipped off

前端 未结 9 2382
粉色の甜心
粉色の甜心 2020-12-28 14:41

The Android TextView clips off my text subscripts (see image below) even when I use android:layout_height=\"wrap_content\" for the TextView. Is there a fix/work

9条回答
  •  自闭症患者
    2020-12-28 15:23

    This solution worked for me.

    Superscripted text is usually made smaller when the browser renders it, that doesn't seem to happen here so you can replicate that (and solve this problem) by doing this:

    someTextView.setText(Html.fromHtml("Some text1"));
    

提交回复
热议问题