title: Implementing onTouchListener for a TextView
body: <p>I am implementing <code>onTouchListener</code> in <code>MainActivity</code> and attribute an <code>OnTouchListener</code> to a Textview <code>tv</code>, but as running no message pop up when the screen is pressed.</p>
  
  <p>MainActivity</p>
  
  <pre><code>public class MainActivity extends Activity implements View.OnTouchListener
  {
      TextView tv;    
      @Override
      public void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          tv=(TextView)findViewById(R.id.tv);
          tv.setOnTouchListener(this);
          tv.setText(R.string.hello);
      }
  
      public boolean onTouch(View v,MotionEvent event)
      {
          Toast.makeText(this,"onTouch",Toast.LENGTH_LONG).show();
          return true;
      }
  }
  </code></pre>