Android7.0中文文档(API)-- RemoteViews
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/RemoteViews.html
RemoteViews
public class RemoteViews
extends Object
implements Parcelable, LayoutInflater.Filter
java.lang.Object | |
↳ | android.widget.RemoteViews |
A class that describes a view hierarchy that can be displayed in another process. The hierarchy is inflated from a layout resource file, and this class provides some basic operations for modifying the content of the inflated hierarchy.
描述视图层次结构的类,可以在其他进程中显示。层次结构从一个布局资源文件中加载(inflate),这个类提供了一些基础的操作,以修改已加载的层次结构中的内容。
摘要
嵌套类 | |
---|---|
class | RemoteViews.ActionException Exception to send when something goes wrong executing an action |
@interface | RemoteViews.RemoteView This annotation indicates that a subclass of View is allowed to be used with the |
继承常量 |
---|
From interface android.os.Parcelable |
字段 | |
---|---|
public static final Creator | CREATOR Parcelable.Creator that instantiates RemoteViews objects |
Public构造方法 | |
---|---|
RemoteViews(String packageName, int layoutId) Create a new RemoteViews object that will display the views contained in the specified layout file. | |
RemoteViews(RemoteViews landscape, RemoteViews portrait) Create a new RemoteViews object that will inflate as the specified landspace or portrait RemoteViews, depending on the current configuration. | |
RemoteViews(Parcel parcel) Reads a RemoteViews object from a parcel. |
Public方法 | |
---|---|
void | addView(int viewId, RemoteViews nestedView) Equivalent to calling |
View | apply(Context context, ViewGroup parent) Inflates the view hierarchy represented by this object and applies all of the actions. |
更多相关文章
- android > WebView > 加载完整网页
- Android UI 优化-使用theme 预加载
- Android动态加载——加载已安装APK中的类
- android基础入门GridView视图(12)
- android 动态加载List
- 加载AnimationDrawable 从xml file
- Android Room联合AsyncListUtil实现RecyclerView分页加载ORM数据
- Android 异步加载图片
- Android——GridView(网格视图)相关知识总结贴