<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
permissionGroupattribute of the<permission>element. Members of a group are presented together in the user interface.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.
ATTRIBUTES:
-
-
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
labelattribute, it cannot be a raw string. - An icon representing the permission. This attribute must be set as a reference to a drawable resource containing the image definition.
- 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.
-
The name of the group. This is the name that can be assigned to a
<permission>element's<permissionGroup>attribute.
android:descriptionandroid:iconandroid:labelandroid:name
INTRODUCED IN:
-
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
- API Level 1 SEE ALSO:
-
<permission>
<permission-tree>
<uses-permission>

本文详细解释了Android中<permission-group>元素的使用方法,包括其语法、作用、属性及引入方式,帮助开发者更好地管理应用权限。
2859

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



