title: android setOnTouchListener change multi items
body: <p>I have number of TextViews for which I want to change the color for all items as user drags cursor on them in one click.</p>
  
  <p>I used <code>setontouchlistener</code>, but this method calls the action only for first button. Is there anyway to do for all in the same click when slide over them holding mouse?</p>
  
  <p>This my code:</p>
  
  <pre><code>import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.view.MotionEvent;
  import android.view.View;
  import android.widget.Button;
  import android.widget.LinearLayout;
  import android.widget.RelativeLayout;
  import android.widget.TextView;
  
  public class MainActivity extends AppCompatActivity  {
  
      TextView tv1,tv2,tv3,tv4,tv5;
      Button bu,bu1,bu2;
  
  
      MyTouchListener touchListener = new MyTouchListener();
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          tv1.setId(1);
          tv2.setId(2);
          tv3.setId(3);
          tv4.setId(4);
          tv5.setId(5);
  
  
          tv1.setOnTouchListener(touchListener);
          tv2.setOnTouchListener(touchListener);
          tv3.setOnTouchListener(touchListener);
          tv4.setOnTouchListener(touchListener);
          tv5.setOnTouchListener(touchListener);
      }
  
      public class MyTouchListener implements View.OnTouchListener {
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              switch(v.getId()){
                  case 1:
                      tv1.setTextColor(0xffff0000);
                      break;
                  case 2:
                      tv2.setTextColor(0xffff0000);
                      break;
                  case 3:
                      tv3.setTextColor(0xffff0000);
                      break;
                  case 4:
                      tv4.setTextColor(0xffff0000);
                      break;
                  case 5:
                      tv5.setTextColor(0xffff0000);
                      break;
              }
              return true;
          }
  
      }
  
  }
  </code></pre>