王立平--RemoteView

RemoteView它将在两个地方被使用:一个是在AppWidget,另外一个是在Notification.

RemoteView是用来描写叙述一个垮进程显示的view 


1。AppWidget---RemoteView 


AppWidgetProvider是一个BrocaseReceiver,仅仅是接受到Enable, Update,disale,delete这些message,而真正显示界面的是

AppWidgetHostView(这是在Launcher里面实现的)这中间就是通过RemoteView来沟通

通过RemoteView告诉Launcher你想要的

AppWidget是什么。

 

2。Notification--RemoteView 


你想自己定义你的Notification也必须通过RemoteView.由于你定义的Nofication和显示Notification也是两种不同的工艺。 

版权声明:本文博客原创文章,博客,未经同意,不得转载。

posted on 2015-07-27 15:07  gcczhongduan  阅读(159)  评论(0编辑  收藏  举报