android:id和@id一样是引用已有的id,
@+id是新增加一个id
在Dev Guide -> User interface -> Declaring Layout 里面看到的。
The at-symbol (@) at the beginning of the string indicates that the XML parser should parse and expand the rest of the ID string and identify it as an ID resource. The plus-symbol (+) means that this is a new resource name that must be created and added
to our resources (in the R.java file). There are a number of other ID resources that are offered by the Android framework. When referencing an Android resource ID, you do not need the plus-symbol, but must add the android package namespace, like so:
android:id="@android:id/empty"
本文介绍了Android中ID资源的使用方式,包括如何引用已有ID (@id) 和创建新的ID资源 (@+id)。此外还详细解释了这两种ID在XML布局文件中的具体应用。

被折叠的 条评论
为什么被折叠?



