title: How to define setOnTouchListener for multiple buttons in Android fragment
body: <p>I have a fragment with multiple buttons. For each button I created a <code>setOnTouchListener</code>, such as the code below.</p>
  
  <pre><code>Button btnOne = (Button) view.findViewById(R.id.button_one);
  Button btnTwo = (Button) view.findViewById(R.id.button_two);
  
  btnOne.setOnTouchListener(new View.OnTouchListener() {
      @Override
      public boolean onTouch(View v, MotionEvent event) {
          myMethod(btnOne);
          return false;
      }
  });
  
  btnTwo.setOnTouchListener(new View.OnTouchListener() {
      @Override
      public boolean onTouch(View v, MotionEvent event) {
          myMethod(btnTwo);
          return false;
      }
  });
  </code></pre>
  
  <p>How could I create a generic method <code>setOnTouchListener</code> to use in all buttons? I'd like to have something like this:</p>
  
  <pre><code>btnOne.method();
  btnTwo.method();
  btnThree.method();
  ...
  </code></pre>