-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting Badges #14
Comments
Badges aren't supported by now. It'll be great if you could make a PR for that feature. |
@tuyen-vuduc I'll implement in my own project and see how it fits in. Thanks for the response. |
@craigathon I am currently in the middle of combining this library with Xabre's badge library. I'll probably know on Monday whether the 2 are compatible, I'll keep you informed! |
@Axemasta Awesome, let me know if you need help checking anything out. I'm very interested in that approach. I too already use that badge library for iOS. The clean way badges can be set from xamarin forms is ideal. |
@craigathon No luck so far, it seem that tab badge overrides bottomtabbedpage so that you get a nav bar with badges.... rendered at the top of the screen. I'm just sort of leaving the badge feature for android (as it's more important that the tab bar is at the bottom) and will visit it in my own time. |
@craigathon @Axemasta @tuyen-vuduc |
Any workAround? |
@vivekshah-zymr You can use Xabre's Tab Badge Library to add badges, it is not compatible with this library however. My app sacrificed badges on android to have a bottom tabbed page (pre 3.1). You won't get badges with this library, you could try and combine the Xabre library with the new bottom nav that coems natively in Xamarin Forms. |
Hey @Axemasta, I found this https://montemagno.com/xamarin-forms-official-bottom-navigation-bottom-tabs-on-android/ And the Xabre's Tab Badge Library , they did a Pre-release 2.1.0-pre.3 to support it |
You guys have probably overcome this issue by now but I thought I'd let you know anyway. I suggested the Xabre Plugin Badge Library and they now have full support for the native bottom tab page. This obviously invalidates this library (sorry guys) but everything this lib does is not available out of the box, thanks for the workaround! All you need to do now is set the following attributes on your tabbed page:
You also need to set the Now finally my app does on android what it's done on iOS for a while now! 😁 |
Is it possible to set badges with this solution? I found it is exposed in bottomnavigationviewex but I'm not seing how to access the instance.
Is there a way I pull it out similar to
FindViewById<BottomNavigationViewEx>(Resource.Id.bnve);
https://github.com/NAXAM/bottomnavigationviewex-android-binding/blob/72c6718d47f31ecd5f53cd14d51f094ade89694b/BottomNavExtentionExample/code/BadgeViewActivity.cs
The text was updated successfully, but these errors were encountered: