Hi Everyone, I'm working on a weather app using Xamarin.Forms where I consume API and populate data in my widget in Xamarin.Android. Everything works fine but I have to show loader on widget when user click on update button in widget.
I was handling this using Visibility but it's not working properly. Is there anyone who can help me on this.
Any kind of help will be appreciated.
I had to update my widget using below lines.
(AppWidgetManager.GetInstance(context)).UpdateAppWidget(new ComponentName(context, Java.Lang.Class.FromType(typeof(AppWidget)).Name), widgetView);
Hope it helps.
Answers
How did you hand this by using Visibility?Could you please post more details about this question,e,g, some code snippet?
@jezh Thanks for your reply! Kindly have a look at below code snippet.
Widget is not updating that visibilities....
Is there any log?
I had to update my widget using below lines.
Hope it helps.