Change top padding of nine-patch image after stretching

匆匆过客 提交于 2020-02-05 09:37:31

问题


I have TextView with nine-patch background image:

The vertical padding is set to fit text into bottom grey rectangle like this:

But when the image is stretched vertically, it's top padding saves its absolute value, so text goes above of expected place:

How to make TextView increase top padding after vertical stretch and fit text into bottom area which is not stretchable?

来源:https://stackoverflow.com/questions/20177163/change-top-padding-of-nine-patch-image-after-stretching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!