title: EditText to TextView when button pushed
body: <p>How can I make it so that it uses whatever is in the edittext, as the text view like if I type “hello” push the button and it sets the textview as “hello” then when you push the button again it erases it?</p>
  
  <pre><code>  package com.purelymean.earnings;
    import org.w3c.dom.Text;
  
    import android.app.Activity;
    import android.os.Bundle;
    import android.util.Log;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.TextView;
  
      public class Main extends Activity{
  /**Called when activity is first created. */
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.main);
      Button b = (Button) findViewById(R.id.button);
      Text et = (Text) findViewById(R.id.editText1);
      TextView tx = (TextView) findViewById(R.id.textView1);
  
  
      b.setOnClickListener(new OnClickListener() {
  
  
          @Override
          public void onClick(View v) {
  
  
  
  
  
          }
      });
  
  }
  }
  </code></pre>