Closed noelfernandes closed 7 years ago
How about invoking it from the XHUD
namespace?
What I do in my Forms app is XHUD.HUD.MyActivity = this;
in my Android app's MainActivity, and then I can call XHUD api's as I please:
XHUD.HUD.Show ("Signing in...", maskType: XHUD.MaskType.Black);
Hi there,
I managed to get the BTProgressHUD working in my Xamarin forms (iOS) project but could not get AndHUD to work in the Xamarin Forms (Android) project. I created an interface in the PCL with project level implementations i.e. in iOS I used BTProgressHUD and Android I used AndHUD.
For Android, the hud doesn't show up at all. The code is as follows:
IHudService.cs
Android implementation of IHudService i.e. HudService.cs
I have a page called CategoriesPage.xaml. In this page I have a scrollview. I am invoking the hudService in the Scrolled event of the scrollview on this page as follows:
Basically, I'm trying to have a "scroll down to refresh" behavior. Upon debugging, I can see that it is able to execute all the 3 lines and the methods therein but for some reason the hud does not show on Android at all.
Any ideas assistance would really be appreciated.
Thanks Noel