locked
Android tab bar badge RRS feed

  • Question

  • User309291 posted

    Hi,

    I looked around the www for a good solution to create a badge for the android tab bar.

    First of all: If I create a custom renderer for the Tabbar with no function, the Tab bar is not longer available. The tab bar ist hidden or removed, I dont know why? ``` using System; using Xamarin.Forms; using System.Collections.Generic; using Xamarin.Forms.Platform.Android;

    [assembly: ExportRenderer(typeof(TabbedPage), typeof(TC.Android.Renderer.ExtendedTabbedPage))] namespace TC.Android.Renderer { public class ExtendedTabbedPage : TabbedRenderer { public static void TC_Init() { Console.WriteLine("-- Init ExtendedTabbedPage"); return; } } } ```

    But I also need a solution for badge in the tab bar like this: https://github.com/xabre/xamarin-forms-tab-badge

    But in this package, I got errors. Look at this issue: https://github.com/xabre/xamarin-forms-tab-badge/issues/33

    Has anybody any idea?

    Thank you so much!

    Tuesday, August 29, 2017 9:16 AM

Answers

  • User207279 posted

    If I create a custom renderer for the Tabbar with no function, the Tab bar is not longer available. The tab bar ist hidden or removed, I dont know why? Base class should TabbedPageRenderer as the Source type is TabbedPage.

    But in this package, I got errors. Look at this issue: https://github.com/xabre/xamarin-forms-tab-badge/issues/33 If that's the case i would suggest you to look for the previous stable release, i hope they have one.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, August 29, 2017 11:47 AM

All replies

  • User207279 posted

    If I create a custom renderer for the Tabbar with no function, the Tab bar is not longer available. The tab bar ist hidden or removed, I dont know why? Base class should TabbedPageRenderer as the Source type is TabbedPage.

    But in this package, I got errors. Look at this issue: https://github.com/xabre/xamarin-forms-tab-badge/issues/33 If that's the case i would suggest you to look for the previous stable release, i hope they have one.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, August 29, 2017 11:47 AM
  • User309291 posted

    @DK90 Thank you, I will try.

    Thursday, August 31, 2017 9:46 AM