Difference between @android:id/list and @id/list [duplicate]
what is the difference between
@android:id/hello
and
@i开发者_开发百科d/hello
I ask this, cause apparently we MUST use @android:id/list in the Class when we want to extend ListActivity.
@android:id/hello
is the default ID as set by Android (except that I don't think they have a hello set).
@id/hello
would be an ID set specific to your application.
The @android:*
identifiers refer to pre-defined identifiers in the SDK. Those are the only identifiers known to the framework (like ListActivity). Identifiers like @id/list
refer to your app's resources.
精彩评论