RemoteView在什么地方使用
来源:互联网 发布:手机淘宝发布宝贝 编辑:程序博客网 时间:2024/05/17 01:46
RemoteView的使用
RemoteView概述
到目前为止,RemoteView会用在两个地方:一个是在AppWidget,另外一个是在Notification.`先从官方对他的定义来看:
RemoteView–
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.RemoteView描述一个view,而这个view是在另外一个进程显示的。它inflate于layout资源文件。并且提供了可以修改过view内容的一些简单基础的操作。 从这个定义我们就知道RemoteView是用来描述一个垮进程显示的view。从而你就会明白为什么AppWidget和Nofication需要用到它了。
- AppWidget—RemoteView
- 我们都知道AppWidgetProvider是一个BrocaseReceiver,只是接受到Enable, Update,disale,delete这些message,而真正显示界面的是AppWidgetHostView(这是在Launcher里面实现的)这中间就是通过RemoteView来沟通。通过RemoteView告诉Launcher你想要的AppWidget是长什么样。
- Notification–RemoteView
- 若你想自定义你的Notification也必须通过RemoteView.因为你定义的Nofication和显示Notification也是两个不同的进程。
0 0
- RemoteView在什么地方使用
- RemoteView在什么地方用
- RemoteView 在Notification和AppWidget中使用
- 在notification中使用remoteview遇到的问题
- RemoteView的使用
- RemoteView
- 未来在什么地方 -
- dx在什么地方
- 什么地方有人在卖艾司唑仑
- 在什么地方打印日志
- NSUserDefaults数据存储在什么地方?
- java 数据存放在什么地方
- log4j.properties放在什么地方
- 强制转换放在什么地方
- NSUserDefaults数据存储在什么地方?
- NSUserDefaults数据存储在什么地方
- JavaScript的应用在什么地方?
- JavaScript的应用在什么地方?
- 顺序表应用6:有序顺序表查询
- java流布局管理器
- Openjudge 8463 Stupid cat & doge
- springmvc配置
- PICC 数据类型
- RemoteView在什么地方使用
- HDU5792 World is Exploding(树状数组)2016 Multi-University Training Contest 5
- Day 3:MSDN没有内容&第一个程序失败
- 有如下一个字符串:"91 27 46 38 50"
- 《狂热分子》收录
- android 记一次annotation + AbstractProcessor 编译自动生成sdcard管理类
- HDU 1281:棋盘游戏
- Java边界管理器
- * String类的public String replaceAll(String regex,String replacement)