private CharSequence getMaxNumberOfCharactersMessage ( ) { int maxLength = getMaxNumberOfCharacters ( ) ; int currentLength = getView ( ) . length ( ) ; return String . format ( getResources ( ) . getString ( R . string . edit_text_size_violation_error_message ) , currentLength , maxLength ) ; }
Returns the message which shows how many characters in relation to the maximum number of characters the edit text is allowed to contain have already been entered .