title: Android EditText change other EditText value
body: <p>When I edit one text field, I want another text field to change.</p>
  
  <pre><code>  editTextCount.addTextChangedListener( new TextWatcher( ) {
  
      @Override
      public void afterTextChanged( Editable arg0 ) {
  
        if ( arg0.length( ) == 0 ) {
          return;
        }
  
        editTextAmount.setText( value
            * Integer.parseInt( arg0.toString( ) )+""  );
  
      }
  
      @Override
      public void beforeTextChanged( CharSequence arg0, int arg1, int arg2,
          int arg3 ) {
        // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onTextChanged( CharSequence arg0, int arg1, int arg2,
          int arg3 ) {
        // TODO Auto-generated method stub
  
      }
  
    } );
  </code></pre>
  
  <p>When I edit editTextCount, editTextAmount should change, but nothing happens.</p>
  
  <p>Edit - Also, I forgot to mention this is in a custom ArrayAdapter. Could this be the problem?</p>
  
  <p>Edit2 - I'm an idiot. I was declaring  <code>EditText editTextAmount</code> as a class level variable when I should have been declaring it  <code>final EditText editTextAmount</code> inside the getView() method. Thanks for all the help everyone. Your answers will help me with errors in the future.</p>