Space-Navigation-View
Space-Navigation-View copied to clipboard
Can't show badge?
I got an issue, I add line "spaceNavigationView.showBadgeAtIndex(2,3,getResources().getColor(R.color.colorAccent));" to onCreate of Activity to show badge, so it ocour FC issue with log "java.lang.IndexOutOfBoundsException: Index: 2, Size: 0", through I've add 4 item before, what should i do?
@dainq57 for some wierd reason spaceNavigationView has some sync issues, if you call showBadgeAtIndex method with a few milliseconds of delay, it will work fine. worked for me at least, and i tried alot of other things.
Yes, I am facing the same issue. As @flaviotps said, if we call after a few milliseconds of delay, it works fine.