【发布时间】:2011-06-04 22:18:13
【问题描述】:
View 的 Margin 和 Padding 有什么区别?
【问题讨论】:
-
边距在边框内,边距在外。有关详细信息,请参阅W3C Box model。 This blog post 更具可读性,不过 :-)
-
这可能会有所帮助Declaring Layout
-
这和 HTML 一样,更多请看这里stackoverflow.com/questions/2189452/…
-
查看我对类似问题的回答stackoverflow.com/questions/21959050/…
标签: android user-interface view padding margin