ToolbarItem icon with BADGES could be possible (and with custom icon too)

2»

Posts

  • MarkErickson.91MarkErickson.91 USMember ✭✭

    @Zadudda Thank you! This got me a little further. Were you able to overcome the tinting issue where everything was one color? Also, when I'm loading my SVG, the object has a size of (0,0). Have you ever run into that, what could it be? The SVG is there and recognized.

  • ZaduddaZadudda INMember ✭✭

    @MarkErickson.91 I am sorry but I am not facing any tinting issue.

  • suringroppersuringropper USMember ✭✭
    edited August 2017

    hi @Zadudda || @slavachernikoff ,
    can you please show us how did u call CartIconHelper.DrawCartIcon in your code.
    because me and some other developers like @nhatha did not understand how did you overcome the IPlatform call (or injection)?
    where do you inject the implementation of IPlatform?
    is it on the :
    1. xamrin project
    2. android project in render class
    3. ios project in render class

    is it possible that you clarify that point? it will be great!!

    thanks in advance !!

  • suringroppersuringropper USMember ✭✭

    hi @Zadudda || @slavachernikoff ,
    can you please show us how did u implement CartIconHelper.DrawCartIcon.
    because me and some other developers did not understand how did you overcome the IPlatform call?
    where do you inject the implementation of IPlatform?
    is it on the :smile:
    1. xamrin project
    2. android project
    3. ios project

    thanks in advance ,

    surin

  • suringroppersuringropper USMember ✭✭

    hi @MirzaSikander,
    Were you able to make Slava's code work? Make you an icon with a badge? I am able to execute the code and also create png file from an svg file , but it does not show the badge with the new file.

    If you made Slava's code work i will appreciate it very much if you can clarify, how?

  • MarkErickson.91MarkErickson.91 USMember ✭✭

    @EmanueleSabetta Did you overcome the tint issue on iOS? Has anyone been able to get a icon with a badge number to work on iOS?

  • 15mgm1515mgm15 USMember ✭✭✭✭

    I am also interested on this topic.

  • VivekNigamVivekNigam USMember ✭✭

    hi @slavachernikoff i am getting stuck into the below code:
    DrawCartIcon(int count, string path, IPlatform platform, double iconSize = 30, double scale = 2, string fontName = "Arial", double fontSize = 12, double textSpacing = 4)

    what i need to pass in place of the "IPlatform platform" when i am calling this method from the main content page .

  • puneetmahalipuneetmahali Member ✭✭

    +1

Sign In or Register to comment.