Please enable JavaScript.
Coggle requires JavaScript to display documents.
app widgets (app widget host (App Widget Host, App Widget ID, App Widget…
app widgets
app widget host
App Widget Host
App Widget ID
App Widget Host View
Option Bundle
to create, need:
AppWidgetProviderInfo object
AppWidgetProvider class implementation
View Layout
using app widgets with collections
collection views
ListView
GridView
StackView
AdapterViewFlipper
implementing app widgets with collections
manifest for app widgets with collections
layout for app widgets with collections
AppWidgetProvider class for app widgets with collections
RemoteViewService class
RemoteViewsFactory interface
adding behaviour to individual items
setting up the pending intent template
setting the fill-in intent
keeping collection data fresh
Using the AppWidgetProvider Class
receives method calls
onUpdate()
onAppWidgetOptionsChanged()
onDeleted
onEnabled
onDisabled
onReceive
Receiving App Widget broadcast Intents
ACTION_APPWIDGET_UPDATE
ACTION_APPWIDGET_DELETED
ACTION_APPWIDGET_ENABLED
ACTION_APPWIDGET_DISABLED
ACTION_APPWIDGET_OPTIONS_CHANGED
Creating the App Widget Layout
Adding margins to App Widgets
Adding the AppWidgetProviderInfo metadata
pinning app widgets
creating an app widget configuration activity
setting a preview image