23 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
5 star 12
4 star 6
3 star 3
2 star 0
1 star 2
Compatible with
  • Android

AndHUD 1.3.1

Redth

Add amazing HUDs to your Android apps.

AndHUD

AndHUD is a Progress / HUD library for Android which allows you to easily add amazing HUDs to your app!

Features

  • Spinner (with and without Text)
  • Progress (with and without Text)
  • Image (with and without Text)
  • Success / Error (with and without Text)
  • Toasts
  • Xamarin.Android Support
  • Xamarin Component store
  • Similar API and functionality to BTProgressHUD for iOS
  • XHUD Optional API that is in parity with BTProgressHUD's XHUD API

Quick and Simple

//Show a simple status message with an indeterminate spinner and a Clear background
AndHUD.Shared.Show(myActivity, "Status Message", MaskType.Clear);

//Show a progress with a filling circle representing the progress amount, showing 60% full
AndHUD.Shared.ShowProgress(myActivity, "Loading… 60%", 60);

//Show a success image with a message, with a Clear background, and auto-dismiss after 2 seconds
AndHUD.Shared.ShowSuccess(myActivity, "It Worked!", MaskType.Clear, TimeSpan.FromSeconds(2));

Thanks

Thanks to Nic Wise (@fastchicken) who inspired the creation of this with his component BTProgressHUD https://components.xamarin.com/view/btprogresshud/

It was so awesome for iOS that I needed to have it on Android as well :)

Release Notes

v1.3.1

  • Support for Longer status messages (HUD now sizes itself accordingly)
  • Added XHUD method to specify Mask Type
  • Changed synchronization context calls to be synchronous and avoid race/threading issues
  • Updated attribute names to prevent collisions with other libraries

v1.3

  • Added cancelCallback parameter to allow dialogs to be cancellable
  • Added XHUD API to be compatible with BTProgressHUD
  • Renamed custom attributes to try and avoid collisions with other projects

v1.2

  • Made all resources lowercase to work around a Xamarin.Android bug
  • Changed all method signatures to request a Context now instead of Activity

v1.1

  • Target version now set to 3.1 (API Level 12), but can be used on 2.3 (API Level 9) and newer (anything below API Level 12 will lose the smooth animation for the progress indicator).
Write a Review

11 reviews

mojtaba Zolfaghari rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

this method is deleted

AndHUD.Shared.ShowProgress(myActivity, "Loading… 60%", 60); or maybe this method just for other platform but not for android

Posted on: November 30, 2016 / Version: 1.3.1
Glen Fernandes

I managed to get the BTProgressHUD working in my Xamarin forms (iOS) project but could not get it to work in the Xamarin Forms (Android) project. I created interfaces in the PCL with project level implementations. For Android, DependencyService fails to get an instance of the service class thereby crashing the app :(. Any ideas guys?

Posted on: November 21, 2016 / Version: 1.3.1
John Wilson rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Just drop in and go, couldn't be easier!

Posted on: November 6, 2014 / Version: 1.3.1
Jesus Gonzalez rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

ShowProgress is missing in this version

Posted on: October 15, 2014 / Version: 1.3.1
giancarlo lallopizzi rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

nice and simple

Posted on: September 12, 2014 / Version: 1.3.1
sunil

My app got crashed while using this component in xamarin.Forms project by showing Android.View.BadWindowToken exception. Is there any solution to overcome this.

Posted on: July 24, 2014 / Version: 1.3.1
Paulo Dias

Quando viro meu dispositivo para paisagem, a notificação desaparece

Posted on: July 11, 2014 / Version: 1.3.1
Matt Dye rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Awesome. Owe you a beer.

Posted on: May 2, 2014 / Version: 1.3.1
Alexander Marek rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Similar as Ramiro: The "ShowProgress" is not included.

It was removed from the API. To show the progress HUD you have to call "Show" and pass something other than -1 for progress. (Had to look through the source code to find out about that...) Unfortunately, I get a NullReferenceException as soon as I call this "show" with some progress value above -1... That component is not usable. EDIT: the error was that I am using MVVMCross and tried to add the AndHUD component to my MvvmCross Android Plugin project only. For some reason that won't work. You HAVE to add the component to the actual Android application project.

Posted on: April 15, 2014 / Version: 1.3.1
Darrell Booker rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Work great, look great. Now my android app has the same beauty of my iOS app that's been using BTProgressHUD. Another quality product by Redth!!

Posted on: March 5, 2014 / Version: 1.2
Ramiro Sagmit rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Hi I think the ShowProgress is not included in the file

Posted on: March 5, 2014 / Version: 1.2