摘要: PendingIntent表示一种即将发生的意图,和Intent的区别在于:PendingIntent是在将来的某个不确定的时刻发生,而Intent是立刻发生 典型使用场景是给RemoteViews添加单击事件,想要给RemoteViews设置单击事件,就必须使用PendingIntent 第二个参 阅读全文
posted @ 2018-01-10 15:02 嘉禾世兴 阅读(327) 评论(0) 推荐(0) 编辑
摘要: AppWidgetProvider是android提供实现桌面小部件的类,本质是一个广播,即BroadcastReceiver。是继承关系 开发步骤: 1.在res/layout/下新建一个XML文件,命令为widget.xml,名称和内容可以自定义 2.在res/xml/下新建appwidget_ 阅读全文
posted @ 2018-01-10 14:42 嘉禾世兴 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 接上篇《android开发艺术探索》读书笔记(三) No1: View的三大流程:测量流程、布局流程、绘制流程 No2: ViewRoot对应于ViewRootImpl类,它是连接WindowManager和DecorView的纽带,View的三大流程均是通过ViewRoot来完成的。 在Activ 阅读全文
posted @ 2018-01-10 10:04 嘉禾世兴 阅读(224) 评论(0) 推荐(0) 编辑