什么是" @ +安卓ID /标题"意味着?标题、QUOT、ID

2023-09-07 11:50:09 作者::演戏而已↘.

在正常的,我们应该用 @ + ID / 来定义一个ID,并使用 @Id 引用一个ID。今天,我发现 @ +安卓ID /标题应用程序/设置/ RES /布局/ preferenc_progress.xml

In normal, we should use @+id/ to define an id and use @id to reference an id. Today I found @+android:id/title in apps/settings/res/layout/preferenc_progress.xml.

如何理解它,以及如何使用它?

How to understand it and how to use it?

推荐答案

这是用于那些随SDK资源。

It is used for resources that are shipped with the SDK.

您可以通过浏览到一起来看看它们

You can take a look at them by browsing to

[路径到Android SDK] /平台/ android- [版本] /数据/ RES

通过使用机器人 android.R.whatever 您只需指定R档来查找。欲了解更多信息,请阅读访问平台资源。

By using the android in android.R.whatever you just specify the R file to look up. For more information you should read Accessing Platform Resources.