Android7.0中文文档(API)-- RemoteViews
来源:互联网 发布:磊科nw336驱动 mac 编辑:程序博客网 时间:2024/06/06 04:44
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/RemoteViews.html
RemoteViews
public class RemoteViews
extends Object
implements Parcelable, LayoutInflater.Filter
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 theRemoteViews
mechanism.
这个annotation表明允许使用RemoteViews
机制来使用视图的子类。
继承常量
android.os.Parcelable
字段
public static final Creator<RemoteViews>
CREATOR
Parcelable.Creator that instantiates RemoteViews objects
Parcelable.Creator实例化RemoteViews对象
Public构造方法
RemoteViews(String packageName, int layoutId)
Create a new RemoteViews object that will display the views contained in the specified layout file.
创建一个新的RemoteViews对象,它将显示包含在指定布局文件中的视图。
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对象,根据当前的配置,它将加载指定的横屏或竖屏的RemoteViews。
RemoteViews(Parcel parcel)
Reads a RemoteViews object from a parcel.
从一个parcel中读取一个RemoteViews对象。
Public方法
void
addView(int viewId,RemoteViews nestedView)
Equivalent to calling addView(View)
after inflating the givenRemoteViews
.
相当于在加载(inflate)了指定的RemoteViews
之后,调用addView(View)
。
View
apply(Context context, ViewGroup parent)
Inflates the view hierarchy represented by this object and applies all of the actions.
加载(inflate)此对象的视图层次结构,并用于所有的操作。
- Android7.0中文文档(API)-- RemoteViews
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- android Gallery2 图库放大倍率修改
- Quartz中时间表达式的设置-----corn表达式
- 窗体部件之坐标和尺寸大小
- Java 7中的Try-with-resources
- 工作压力山大?码农这么减压最有效
- Android7.0中文文档(API)-- RemoteViews
- catalina的启动过程
- 前端书籍链接
- Java有哪些进阶技术?
- mysql mybatis 查询7天内 30天内的信息
- Fast R-CNN笔记
- 超时与重试机制(1)—《亿级流量》
- Java NIO系列教程(七) FileChannel
- c和c++混合使用