title: Make Android TextView invisible until button pressed?
body: <p>I am looking to make a TextView invisible until the button is pressed.  Specifically they are the answers to the question and only visible once the button below it is pressed.</p>
  
  <p>What I have so far >></p>
  
  <pre><code>public class AndroidAssignment2_1 extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_android_assignment2_1);
  
          Button next = (Button) findViewById(R.id.QButton);
          next.setOnClickListener(new View.OnClickListener() {
              public void onClick(View view) {
                  Intent intent = new Intent();
                  setResult(RESULT_OK, intent);
                  finish();
  
              }
          }); 
              Button next1 = (Button) findViewById(R.id.QButton);
              next1.setOnClickListener(new View.OnClickListener() {
                  public void onClick(View view) {
                      Intent myIntent = new Intent(view.getContext(), AndroidAssignment2_2.class);
                      startActivityForResult(myIntent, 0);
                  }
              }); 
  
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.android_assignment2_1, menu);
          return true;
      }
  
  }
  </code></pre>
  
  <p>The xml for this class</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
  &lt;TextView android:id="@+id/Questions"
      android:layout_weight="1"
      android:layout_width="wrap_content"
      android:layout_height="0dip"
      android:text="@string/Q2"   /&gt;
  
  &lt;Button android:id="@+id/QButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/button_question"  /&gt;
  
  &lt;Button android:id="@+id/AButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/button_send" /&gt;
  
  &lt;TextView android:id="@+id/Answers"
      android:layout_weight="1"
      android:layout_width="wrap_content"
      android:layout_height="0dip"
      android:hint="@string/A2" /&gt;
  
  &lt;Button android:id="@+id/QuitButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/button_quit" /&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I dont think more is needed, I am just looking for the code that I would apply to "AButton" to make the TextView "Answers" only visible once clicked by user.</p>