Is it possible to create a widget using Xamarin.Forms? ie I want to add a widget to an existing app using existing XAML views.
I've seen the SimpleWidget example but this is not using Xamarin.Forms are there any other examples of creating widgets?
If you use Shared Project you can try to embed native controls in forms. If you use Pcl, there should be a way but I have not an example (maybe with dependencyservice)
For anyone with the same problem. it seems like its impossible to create a widget using Xamarin.Forms XAML views. Android forces you to create xml resources for the widgets and limits what you can do with them. Presumably to keep them lightweight and compatible with homescreens.
the best you can do is follow the simple widget guide. you can still use your PCL business classes etc, just not the view
can anyone share example...in forms not in native
@anupkumar.7490 it is not possible to create widget using Forms.
You need to use Xamarin.Android. The link for same was provided earlier in the thread: https://developer.xamarin.com/samples/monodroid/SimpleWidget/
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies