Skip to content

Android Widget Tutorials with 5 Examples

Notifications You must be signed in to change notification settings

RznNike/WidgetExamples

 
 

Repository files navigation

Mod info

This is updated and refactored version of widget examples.

Original repo: https://github.com/yerenutku/WidgetExamples

This mod uses Kotlin, newer SDK, API and gradle; migrated to AndroidX.

WidgetExamples

There are 5 examples of Android Widgets based on this article : https://medium.com/@erenutku/android-widgets-ad3d166458d3

DynamicWidgetExample

Shows how to change widget layout based on it’s approx. size in home screen cells.

SimpleWidgetExample

Widget Creation Steps with a basic example (opening of a website on widget click).

simplewidgetexample

BroadcastWidgetExample

Broadcast Widget Example (counting clicks on widget).

broadcastwidgetexample

ConfigurableWidgetExample

Configurable Widget Example (getting data before creation and using the data when it’s clicked)

configurablewidgetexample

UpdatingWidgetExample

Updating by a JobIntentService Widget Example (updating every minute brings random numbers on widget).

updatingwidgetexample

About

Android Widget Tutorials with 5 Examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Kotlin 100.0%