title: How to change a TextView's text by pressing a Button
body: <p>I want to change the of a <code>TextView</code> by pressing a <code>Button</code>, but don't understand how to do it properly.</p>
  
  <p>This is part of my layout:</p>
  
  <pre><code>&lt;TextView android:id="@+id/counter"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Text" /&gt;
  &lt;Button android:id="@+id/button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Change text!" /&gt;
  </code></pre>
  
  <p>And this is my activity:</p>
  
  <pre><code>public class Click extends Activity {
      protected void onCreate(Bundle icicle) {
          super.onCreate(icicle);
          setContentView(R.layout.main);
          final Button button = (Button) findViewById(R.id.button);
          button.setOnClickListener(new View.OnClickListener() {
              public void onClick(View v) {
                  // Perform action on click
                  // ???
              }
          });
      }
  }
  </code></pre>
  
  <p>What should I put inside <code>onClick()</code> method?</p>