title: Updating a textview based on user input
body: <p>I have multiple SeekBars which the user can manipulate to change various values in a text field, I have those values so they will update in real time. </p>
  
  <p>I can't figure out how to get those numbers (I need to do basic math like add, multiply etc) into a new textview that updates simultaneously.</p>
  
  <p>I'll try to post some code, but I'm super new to java, android, and even this site so don't be surprised when none of it makes sense. :-P</p>
  
  <p>jumping down to (what I think) is the important code.</p>
  
  <pre><code>    SeekBar sbc = (SeekBar) findViewById(R.id.seekBar4);
      final TextView tvc = (TextView) findViewById(R.id.textView10);
      sbc.setMax(200);
      sbc.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
  
          @Override
          public void onStopTrackingTouch(SeekBar seekBar) {
  
          }
  
          @Override
          public void onStartTrackingTouch(SeekBar seekBar) {
  
          }
  
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress,
                  boolean fromUser) {
              tvc.setText(String.valueOf(progress-100));
          }
  
      });
  
      //set up chance bar and text
  
      TextView tvp = (TextView) findViewById(R.id.textView14);
      tvp.setText(tvc.getText().toString());
  </code></pre>
  
  <p>As you can see my seek bar goes from -100 to 100... pretty proud of that one (which took about forever for me to google/research lol)</p>
  
  <p>Also the tvp.setText(tvc.getText().toString()); only pulls out the initial value of tvc</p>
  
  <p>Thanks in advance and in the meantime I'll keep playing with it.</p>