question: public void showBadgeAtIndex ( int itemIndex , int badgeText , @ ColorInt int badgeColor ) { if ( itemIndex < 0 || itemIndex > spaceItems . size ( ) ) { throwArrayIndexOutOfBoundsException ( itemIndex ) ; } else { RelativeLayout badgeView = badgeList . get ( itemIndex ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) { badgeView . setBackground ( BadgeHelper . makeShapeDrawable ( badgeColor ) ) ; } else { badgeView . setBackgroundDrawable ( BadgeHelper . makeShapeDrawable ( badgeColor ) ) ; } BadgeItem badgeItem = new BadgeItem ( itemIndex , badgeText , badgeColor ) ; BadgeHelper . showBadge ( badgeView , badgeItem , shouldShowBadgeWithNinePlus ) ; badgeSaveInstanceHashMap . put ( itemIndex , badgeItem ) ; } }
target:  Show badge at index