,我经常看到两种不同的格式:<TextView /> OR <TextView></TextView>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/DrawableResources" />
OR
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/DrawableResources" ></TextView>
他们是一样的吗?在<TextView>
和</TextView>
之间的android中没有内容的所有XML标记是否可以用两种格式编写?
耶两者都是相同的简写。 – Akram 2012-02-01 09:22:48
没有区别,只有一个是速记。 – JoxTraex 2012-02-01 09:41:07