Try this: http://stackoverflow.com/questions/9253993/need-an-easier-way-to-set-up-onclicklistener-for-several-variables-in-android-ca

It looks promising :)