How do I create a widget?

How do I create a widget?
Answer
To create a widget, you:
  1. Define a layout file.
  2. Create an XML file ( AppWidgetProviderInfo ) which describes the properties of the widget, e.g. size or the fixed update frequency.
  3. Create a BroadcastReceiver which is used to build the user interface of the widget.
  4. Enter the Widget configuration in the AndroidManifest.
22 сент. 2020 г.
 

Tìm kiếm

Back
Top