title: Change TextView if Spinner or EditText changed
body: <p>I'm a beginner at android development. I have a <code>TextView</code>, <code>Spinner</code> and <code>EditText</code>. The <code>TextView</code> will change according to <code>Spinner</code> or <code>EditText</code> and I know how to do that. 
  My problem is how to make both <code>Spinner</code> and <code>EditText</code> like work together, so when I select an item from the <code>Spinner</code> it will check what I have in <code>EditText</code> before print it in the <code>TextView</code>, and it has to be the same for <code>EditText</code>.</p>
  
  <p><code>EditText</code> code.</p>
  
  <pre><code>mEditText.addTextChangedListener(new TextWatcher() {
          @Override
          public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
          }
  
          @Override
          public void onTextChanged(CharSequence s, int start, int before, int count) {
              if (!mEditText.getText().toString().trim().isEmpty()) {
                  value = Double.parseDouble(mEditText.getText().toString());
  
                  mTextView.setText(value + "");
              }
          }
  
          @Override
          public void afterTextChanged(Editable s) {
  
          }
      });
  </code></pre>
  
  <p>Spinner code:</p>
  
  <pre><code>mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
          @Override
          public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              if (mMapUnit.containsKey(lengthKey[position])) {
                  if (!mEditText.getText().toString().trim().isEmpty()) {
                      value = Double.parseDouble(mEditText.getText().toString());
  
                      // calculate
  
                      mTextView.setText(result + "");
                  }
              }
          }
  
          @Override
          public void onNothingSelected(AdapterView&lt;?&gt; parent) {
  
          }
      });
  </code></pre>