title: How do I get a string from the OnClickListener View? Android
body: <p>I set up quite a few TextViews in a for loop, and each one gets <code>.setClickable(true)</code></p>
  
  <p>Then, I</p>
  
  <pre><code>tv.setOnClickListener(new OnClickListener() { //tv is the TextView.
      public void onClick(View v) {
  
      }
  });
  </code></pre>
  
  <p>I know that it's a TextView, but I'm given View v. How do I get the text of the TextView from inside <code>public void onClick(View v){ }</code>? Remember: I can't simply make tv a final because it's in a for loop and it makes a lot of TextViews.</p>