public void setMenuBackgroundColor ( int colorResId ) { backgroundColor = ContextCompat . getColor ( getContext ( ) , colorResId ) ; paint . setColor ( backgroundColor ) ; invalidate ( ) ; }
Sets TapBarMenu s background color from given resource .