【通译】(58)permission-group元素

【翻译】(58)permission-group元素

【翻译】(58)permission-group元素

 

see

http://developer.android.com/guide/topics/manifest/permission-group-element.html

 

原文见

http://developer.android.com/guide/topics/manifest/permission-group-element.html

 

-------------------------------

 

<permission-group>

 

permission-group元素

 

-------------------------------

 

* syntax:

 

* 语法:

 

-------------------------------

 

<permission-group android:description="string resource"

                  android:icon="drawable resource"

                  android:label="string resource"

                  android:name="string" />

 

-------------------------------

 

* contained in:

 

* 被包含在:

 

<manifest>

 

* description:

 

* 描述:

 

Declares a name for a logical grouping of related permissions. Individual permission join the group through the permissionGroup attribute of the <permission> element. Members of a group are presented together in the user interface.

 

为相关权限的逻辑分组声明一个名称。单独的权限通过<permission>元素的permissionGroup属性组合成分组。一个分组的成员在用户界面中被呈现在一起。

 

Note that this element does not declare a permission itself, only a category in which permissions can be placed. See the <permission> element for element for information on declaring permissions and assigning them to groups.

 

注意这个元素自身不声明一个权限,只是权限可以放置进的一个分类。参见用于元素(注:待考)的<permission>元素以获得关于声明权限和赋予它们到分组的信息。

 

* attributes:

 

* 属性:

 

* android:description

 

User-readable text that describes the group. The text should be longer and more explanatory than the label. This attribute must be set as a reference to a string resource. Unlike the label attribute, it cannot be a raw string.

 

描述该组的用户可读文本。该文本应该比标签更长并且更有解释性。这个属性必须被设置为字符串资源的引用。不像label属性那样,它不允许是一个原始字符串。

 

* android:icon

 

An icon representing the permission. This attribute must be set as a reference to a drawable resource containing the image definition.

 

一个代表权限的图标。这个属性必须被设置为指向包含图片定义的可绘画对象资源的引用。

 

* android:label

 

A user-readable name for the group. As a convenience, the label can be directly set as a raw string while you're developing the application. However, when the application is ready to be published, it should be set as a reference to a string resource, so that it can be localized like other strings in the user interface.

 

组的用户可读名称。作为一种便利,当你正在开发应用程序时标签可以被直接设置为一个原始字符串。然而,当应用程序准备要被发布时,它应该被设置为指向字符串资源的引用,使它可以像用户界面中的其它字符串那样被本地化。

 

* android:name

 

The name of the group. This is the name that can be assigned to a <permission> element's <permissionGroup> attribute.

 

分组的名称。这个名称可以赋给一个<permission>元素的<permissionGroup>属性。

 

* introduced in:

 

* 引入:

 

API Level 1

API级别1

 

 

* see also:

 

* 另见:

 

<permission> 

<permission-tree> 

<uses-permission>

 

Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.

 

除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。

 

Android 4.0 r1 - 10 Feb 2012 0:44

 

-------------------------------

 

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

 

(此页部分内容基于Android开源项目,以及使用根据创作公共2.5来源许可证描述的条款进行修改)

 

(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:

* ソフトウェア技術ドキュメントを勝手に翻訳

http://www.techdoctranslator.com/android

* Ley's Blog

http://leybreeze.com/blog/

* 农民伯伯

http://www.cnblogs.com/over140/

* Android中文翻译组

http://androidbox.sinaapp.com/