Android Question Badger on Toolbar Item

Discussion in 'Android Questions' started by AHilton, Oct 14, 2018.

  1. AHilton

    AHilton Active Member Licensed User

    Can you use the XUI Badger with the AppCompat ACToolBarLight menu item?

    Yes, there's a badging example in that AppCompat example but I'd like to use the new XUI Badger to do this, if possible.

    I've tried …
    Code:
    Dim Item As ACMenuItem = ACToolBarLight1.Menu.GetItem(0)     ' 0 = The menu item I'm wanting the badge set onto

    Badger1.SetBadge(Item, 
    700)
    … but am getting this error …

    Code:
    java.lang.ClassCastException: android.support.v7.view.menu.MenuItemImpl cannot be cast to android.view.View
     
  2. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice