Вы можете попытаться установить для всех кнопок один и тот же onTouchListener, например:
button1.setOnTouchListener(this);
button2.setOnTouchListener(this);
button3.setOnTouchListener(this);
Конечно, ваше приложение должно реализовать onTouchListener, а затем вы можете написать свой onTouchListener:
public void onClick(View v) {
// write your code what you want your buttons to do
// You can also write some different codes for buttons by using id
if(v.getId() == button1.getId())
{
//do something when button1 clicked...
}
}