Karamunting.Android.RafaelBarbosatec.AchievementView 0.1.4

AchievementView

Show informative message in your Android app

Install-Package Karamunting.Android.RafaelBarbosatec.AchievementView -Version 0.1.4
dotnet add package Karamunting.Android.RafaelBarbosatec.AchievementView --version 0.1.4
<PackageReference Include="Karamunting.Android.RafaelBarbosatec.AchievementView" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Karamunting.Android.RafaelBarbosatec.AchievementView --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Simple Usage

protected override void OnCreate(Bundle savedInstanceState)
{
	// ...
	var achievementView = FindViewById<AchievementView>(R.Id.achievement_view);
	var btn = FindViewById<Button>(R.Id.btn_show);

	btn.Click += (s,e) =>
	{
	    achievementView.SetTitle("This is title")
	        .SetMessage("This is message")
	        .SetColor(R.Color.colorAccent)
	        .SetIcon(R.Drawable.ic_sun)
	        .SetScaleTypeIcon(ImageView.ScaleType.CenterInside)
	        .SetClick(
	            clickListener: v =>
	            {
	                Toast.MakeText(this, "Hello", ToastLength.Short).Show();
	            }
	        )
	        .Show();
	};
}

Simple Usage

protected override void OnCreate(Bundle savedInstanceState)
{
	// ...
	var achievementView = FindViewById<AchievementView>(R.Id.achievement_view);
	var btn = FindViewById<Button>(R.Id.btn_show);

	btn.Click += (s,e) =>
	{
	    achievementView.SetTitle("This is title")
	        .SetMessage("This is message")
	        .SetColor(R.Color.colorAccent)
	        .SetIcon(R.Drawable.ic_sun)
	        .SetScaleTypeIcon(ImageView.ScaleType.CenterInside)
	        .SetClick(
	            clickListener: v =>
	            {
	                Toast.MakeText(this, "Hello", ToastLength.Short).Show();
	            }
	        )
	        .Show();
	};
}

  • MonoAndroid 7.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.4 399 1/21/2018