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 …
    Dim Item As ACMenuItem = ACToolBarLight1.Menu.GetItem(0)     ' 0 = The menu item I'm wanting the badge set onto

    … but am getting this error …

    java.lang.ClassCastException: cannot be cast to android.view.View
  2. Erel

    Erel Administrator Staff Member Licensed User

  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