注:转载请注明来自Nemo, http://blog.youkuaiyun.com/nemo__
一、包名
android.content.pm.PackageItemInfo
子类(均在android.content.pm包中):ApplicationInfo, InstrumentationInfo, PermissionGroupInfo, PermissionInfo, ComponentInfo.
二、概述
/**
* Base class containing information common to all package items held by
* the package manager. This provides a very common basic set of attributes:
* a label, icon, and meta-data. This class is not intended
* to be used by itself; it is simply here to share common definitions
* between all items returned by the package manager. As such, it does not
* itself implement Parcelable, but does provide convenience methods to assist
* in the implementation of Parcelable in subclasses.
*/
PackageItemInfo, 代表一个应用包内所有组件项和通用信息的基类。该类提供最基本的属性集,如: label, icon, meta-data等。一般不会直接使用该类,它设计之初就是为了包内其它基本组件项提供统一的基本定义。它没有实现接口Parcelable, 但它提供了传Parcel型的构造函数,以及writeToParcel()方法给它的子类来实现PackageItemInfo内部这部分的成员的Parcel化。
Android源码解析:PackageItemInfo类详解

PackageItemInfo是Android内容包管理器中所有组件信息的基类,包含标签、图标和元数据等基本信息。它不直接使用,主要用于子类ApplicationInfo、InstrumentationInfo等。文章详细介绍了PackageItemInfo的主要成员、方法以及其在PackageParser解析过程中的作用。
最低0.47元/天 解锁文章
1663

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



