Android: AppWidget开发官方文档
2014-07-07 11:11
429 查看
1. AppWidget设计概述
http://developer.android.com/design/patterns/widgets.html
2. AppWidget设计指南
http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#anatomy_determining_size
3. AppWidget详细介绍
http://developer.android.com/guide/topics/appwidgets/index.html
4. AppWidgetProvider: 实现AppWidget provider
http://developer.android.com/reference/android/appwidget/AppWidgetProvider.html
5. AppWidgetProviderInfo: 描述AppWidget provider元数据,与 <appwidget-provider> xml标签对应
http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html
6. AppWidgetHost
http://developer.android.com/reference/android/appwidget/AppWidgetHost.html
One feature of app widgets that use collections is the ability to provide users with up-to-date content. For example, consider the Android 3.0 Gmail app widget, which provides users with a snapshot of their inbox. To make this possible, you need to be able to trigger your
http://developer.android.com/design/patterns/widgets.html
2. AppWidget设计指南
http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#anatomy_determining_size
3. AppWidget详细介绍
http://developer.android.com/guide/topics/appwidgets/index.html
4. AppWidgetProvider: 实现AppWidget provider
http://developer.android.com/reference/android/appwidget/AppWidgetProvider.html
5. AppWidgetProviderInfo: 描述AppWidget provider元数据,与 <appwidget-provider> xml标签对应
http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html
6. AppWidgetHost
http://developer.android.com/reference/android/appwidget/AppWidgetHost.html
Keeping Collection Data Fresh
The following figure illustrates the flow that occurs in an app widget that uses collections when updates occur. It shows how the app widget code interacts with theRemoteViewsFactory, and how you can trigger updates:
One feature of app widgets that use collections is the ability to provide users with up-to-date content. For example, consider the Android 3.0 Gmail app widget, which provides users with a snapshot of their inbox. To make this possible, you need to be able to trigger your
RemoteViewsFactoryand collection view to fetch and display new data. You achieve this with the
AppWidgetManagercall
notifyAppWidgetViewDataChanged(). This call results in a callback to your
RemoteViewsFactory’s
onDataSetChanged()method, which gives you the opportunity to fetch any new data. Note that you can perform processing-intensive operations synchronously within the
onDataSetChanged()callback. You are guaranteed that this call will be completed before the metadata or view data is fetched from the
RemoteViewsFactory. In addition, you can perform processing-intensive operations within the
getViewAt()method. If this call takes a long time, the loading view (specified by the
RemoteViewsFactory’s
getLoadingView()method) will be displayed in the corresponding position of the collection view until it returns.
相关文章推荐
- Android官方开发文档Training系列课程中文版:APP的内存管理
- Android官方开发文档Training系列课程中文版:与其它APP交互之将用户带到其它的APP
- Android官方开发文档Training系列课程中文版:与其它APP交互之从Activity获得结果
- Android官方开发文档Training系列课程中文版:分享简单数据之从其它APP接收简单数据
- Android官方开发文档Training系列课程中文版:APP的内存管理
- android官方文档之路--AppWidget
- Android官方开发文档Training系列课程中文版:APP的内存管理
- Android官方开发文档Training系列课程中文版:管理音频播放之控制APP的音量与播放
- Android官方开发文档Training系列课程中文版:与其它APP交互之允许其它APP启动你的Activity
- Android---App Widget(官方文档翻译)
- Android官方开发文档Training系列课程中文版:分享简单数据之发送简单数据给其它APP
- Android 开发笔记五 AppWidget 的使用
- android之App Widget开发实例
- Android Web App官方文档翻译第三章:WebView构建应用
- 支付宝安全支付服务Android应用开发指南(摘取官方文档)
- android开发之App widget
- Android AppWidget开发心得
- 看Google官方的Android开发文档的一些收获
- android appwidget 开发
- 实现开启和关闭android移动网络(做AppWidget开发的收获)