title: Android textwatcher count down
body: <p>How can I make a textwatcher count down from 250 to 0 during typing? <code>android:maxLength="250"</code> is set, so it won't go below 0.</p>
  
  <pre><code> et_Notes = (EditText) dialog_list.findViewById(R.id.EditText_Notes);
   tvC = (TextView)dialog_list.findViewById(R.id.TextViewCounter);
  
      final TextWatcher mTextEditorWatcher = new TextWatcher() {
          public void beforeTextChanged(CharSequence s, int start, int count, int after) {
          }
  
          public void onTextChanged(CharSequence s, int start, int before, int count) {
  
             tvC.setText(String.valueOf(s.length()));
          }
  
          public void afterTextChanged(Editable s) {
  
          }
      };
  
      et_Notes.addTextChangedListener(mTextEditorWatcher);
  </code></pre>