Android:TextView height doesn't change after shrinking the font size

后端 未结 7 1211
长情又很酷
长情又很酷 2020-12-03 14:19

When I click on the button, the font size shrinks to 12. However, the result is :

\"enter

相关标签:
7条回答
  • 2020-12-03 15:18

    try calling invalidate() or a variant of invalidate(). From android developer docs:

    public void invalidate ()

    Since: API Level 1 Invalidate the whole view. If the view is visible, onDraw(android.graphics.Canvas) will be called at some point in the future. This must be called from a UI thread. To call from a non-UI thread, call postInvalidate().

    http://developer.android.com/reference/android/view/View.html#invalidate()

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