android 仿苹果 小组件,Android窗口小部件App Widget开发权威指南

描述App Widget的各种数据,比如App Widget的layout,数据更新频率,以及AppWidgetProvider类。这些是定义在xml文件里的。AppWidgetProvider  class implementation

Defines the basic methods that allow you to programmatically interface with the App Widget, based on broadcast events. Through it, you will receive broadcasts when the App Widget is updated, enabled, disabled and deleted.View layoutDefines the initial layout for the App Widget, defined in XML.

Additionally, you can implement an App Widget configuration Activity. This is an optional Activitythat launches when the user adds your App Widget and allows him or her to modify App Widget settings at create-time.

The following sections describe how to setup each of these components.

你可能感兴趣的:(android,仿苹果,小组件)