NAXAM/bottomnavigationviewex-android-binding

How to use ViewBadger?

mhosman opened this issue · 4 comments

How to add the Badge Lib in order to add badge? I cannot find the solution using the provided NuGet package.

Thank you for using our binding library.

I just published the latest nugets for both BottomNavigationViewEx and BadgeView.

Hope you will enjoy using them. Plz give us a star if you like them.

Thanks kanvuduc for your fast answer!! I already give you a star 👍

I downloaded the updated NuGet package of BottomNavigationViewEx and installed the new BadgeView NuGet Package.

There's any way to write some kind of example into the Readme for BadgeView? For example, how to dynamically set a badge in the Bottom Navigation View when there is a new notification? Example:

example

I created this example:

// Bind view in activity
BottomNavigationViewEx bnve = FindViewById<BottomNavigationViewEx>(Resource.Id.bnve);

// Disable all animations
bnve.enableAnimation(false);
bnve.enableShiftingMode(false);
bnve.enableItemShiftingMode(false);

// Add badge to the last item (fourth - pos 3)
BadgeView bv = new BadgeView(this).SetTextSize(8).Bind(bnve.GetBottomNavigationItemView(3)).SetBadgeCount(2);

But i get something like this:
captura

I don't know why, but the badge is too big by default.

Thank you!!!! Great binding lib!

Nobody?

Plz follow the sample code.

if you have time to write down a short guideline, it's really appreciated.

Cheers.