<commit_before>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 API to help be compatible with BTProgressHUD's API (also has XHUD API)
 

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

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

//Show a success image with a message
AndHUD.Shared.ShowSuccess(myActivity, "It Worked!", MaskType.Clear, TimeSpan.FromSeconds(2));

//Show an error image with a message
AndHUD.Shared.ShowError(myActivity, "It no worked :()", MaskType.Black, TimeSpan.FromSeconds(2));

//Show a toast, similar to Android native toasts, but styled as AndHUD
AndHUD.Shared.ShowToast(myActivity, "This is a non-centered Toast…", MaskType.Clear, TimeSpan.FromSeconds(2));

//Show a custom image with text
AndHUD.Shared.ShowImage(myActivity, Resource.Drawable.MyCustomImage, "Custom");

//Dismiss a HUD that will or will not be automatically timed out
AndHUD.Shared.Dismiss(myActivity);

//Show a HUD and only close it when it's clicked
AndHUD.Shared.ShowToast(this, "Click this toast to close it!", MaskType.Clear, null, true, () => AndHUD.Shared.Dismiss(this));
```

![Collage of Possible HUDs](https://raw.github.com/Redth/AndHUD/master/Art/Collage.png)


Changes
-------
v1.4.1
  - Fixed `NullReferenceException` when showing non-centered toast [#38](https://github.com/Redth/AndHUD/issues/38)
  - Added new sample App

v1.4
  - Added `prepareDialogCallback` which is called right after the Dialog has been created. This can be used to customize the Dialog further.<commit_msg>Update readme with notes about changes in this version<commit_after>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 API to help be compatible with BTProgressHUD's API (also has XHUD API)
 

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

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

//Show a success image with a message
AndHUD.Shared.ShowSuccess(myActivity, "It Worked!", MaskType.Clear, TimeSpan.FromSeconds(2));

//Show an error image with a message
AndHUD.Shared.ShowError(myActivity, "It no worked :()", MaskType.Black, TimeSpan.FromSeconds(2));

//Show a toast, similar to Android native toasts, but styled as AndHUD
AndHUD.Shared.ShowToast(myActivity, "This is a non-centered Toast…", MaskType.Clear, TimeSpan.FromSeconds(2));

//Show a custom image with text
AndHUD.Shared.ShowImage(myActivity, Resource.Drawable.MyCustomImage, "Custom");

//Dismiss a HUD that will or will not be automatically timed out
AndHUD.Shared.Dismiss(myActivity);

//Show a HUD and only close it when it's clicked
AndHUD.Shared.ShowToast(this, "Click this toast to close it!", MaskType.Clear, null, true, () => AndHUD.Shared.Dismiss(this));
```

![Collage of Possible HUDs](https://raw.github.com/Redth/AndHUD/master/Art/Collage.png)


Changes
-------
v1.4.2
  - Fixed text not being centered correctly

v1.4.1
  - Fixed `NullReferenceException` when showing non-centered toast [#38](https://github.com/Redth/AndHUD/issues/38)
  - Added new sample App

v1.4
  - Added `prepareDialogCallback` which is called right after the Dialog has been created. This can be used to customize the Dialog further.
{'fraction_non_alphanumeric': 0.11483140768686631, 'fraction_numerical': 0.00825277057297807, 'mean_word_length': 4.217712177121771, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7160458', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1253, 'n_words': 470}