【问题标题】:Difference between <textview></textview> vs <textview /><textview></textview> 与 <textview /> 之间的区别 【发布时间】:2017-11-25 03:05:49 【问题描述】: 我注意到这两种语法都是可以接受的。一个比另一个老吗?有什么区别(历史上的还是没有的)? 【问题讨论】: What's the difference between <tag></tag> and <tag /> in HTML?的可能重复 What are all the valid self-closing elements in XHTML (as implemented by the major browsers)?的可能重复 标签: android xml 【解决方案1】: 这基本上是一个自闭标签,没有区别。更多详情见:What's the difference between <tag></tag> and <tag /> in HTML? 【讨论】: 【解决方案2】: 据我所知,没有区别。有些人在它后面加一个空格(不管它是否是textview)。之后用空格看的话自动改变。这是一个例子: 【讨论】: