开发者

Difference between @android:id/list and @id/list [duplicate]

This question already has answers here: What is difference between @+id/android:list and @+id/list (3 answers) Closed 8 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜