我想知道@+id/android:list和之间有什么区别@+id/list。我知道最后一个是常规的ID分配,但第一个看起来不同。有什么特别之处?
我在哪里看到的: 我正在研究ListView,ListAdapter之类的东西,作者在布局xml文件中定义了ListView,如下所示:
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/main_no_items"/>
我也要提一下@+id/android:emptyid
他还扩大了ListActivity课堂。
这是文章的出处。
还有我在想什么问题:
我们应该扩展ListActivity吗?也许我想要一个还包含其他视图的活动。
我们@+id/android:list只是因为扩展而ListActivity使用,或者如果扩展就可以使用相同的约定Activity吗?
谢谢。