[英]What is the difference between paddingBottom and paddingEnd in a TextView?
I understand the difference between padding and margin, but I don't understand the difference between those two pairs of attributes: bottom and end and on the other hand start and top.我了解填充和边距之间的区别,但我不了解这两对属性之间的区别:底部和结束以及另一方面开始和顶部。 Documentation
文档
It's pretty clear: your TextView has a bound and padding is distance from the bound to the context (where text is rendered)很清楚:你的 TextView 有一个边界,填充是从边界到上下文的距离(文本被渲染的地方)
In the picture, padding is green area.在图片中,填充是绿色区域。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.