public static void setCollabNumberThumb ( Context context , TextView initialsView , int collabNumber ) { String collabNumberDisplay = ( collabNumber >= 100 ) ? "+99" : "+" + Integer . toString ( collabNumber ) ; setColorForCollabNumberThumb ( initialsView ) ; initialsView . setTextColor ( COLLAB_NUMBER_THUMB_COLOR ) ; initialsView . setText ( collabNumberDisplay ) ; }
Helper method to display number of collaborators . If there are more than 99 collaborators it would show 99 + due to the width constraint in the view .