title: Android - setOnClickListener for TextView
body: <p>It should be straightforward, but I am not sure where something is wrong.
  I try to catch the click on the <code>TextView</code> with:</p>
  
  <pre><code>public void runNextTask(){
      final View addView = getLayoutInflater().inflate(R.layout.addnewtracker, null);
      final TrackerInfo newInfo = new TrackerInfo();
      //set up for model selection
      TextView modelTextview = (TextView)addView.findViewById(R.id.modelEdit)
  
      modelTextview.setOnClickListener(new OnClickListener() {
          @Override
          public void onClick(View v) {
  
          }
      });
  }
  </code></pre>
  
  <p>Thee XML for the <code>TextView</code> is:</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/model"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/Tracker_model" 
      android:clickable="true"
      android:onClick="onClick"/&gt;
  </code></pre>
  
  <p>But when I click on the <code>TextView</code>, it does not go into the <code>onClick()</code> method.
  What am I missing?</p>
  
  <p>Thanks</p>