danidomi / android-viewbadger-Xamarin

Badge Value for C# Xamarin
Apache License 2.0
3 stars 1 forks source link

Android ViewBadger Xamarin C#

A simple way to add a badge value to a Android view.

Demos  ListAdapter

Note: If your aim is to replicate the iOS icon and TabBar badge UI for notifications, consider using Android UI conventions such as the number field of the Notification class rather than this method.

Usage

Simple example:

View target = FindViewById(Resource.id.target_view);
BadgeView badge = new BadgeView(this, target);
badge.SetText("1");
badge.Show();

To use ViewBadger in your own Android project, simply build this project and add the reference to your project.

Current Limitations

Credits

Author: Daniel Domingues

Based on this.

The code in this project is licensed under the Apache Software License 2.0.
Copyright (c) 2011 readyState Software Ltd.