阅读背景:

无需创建无限量的onClickListeners

来源:互联网 

So I'm working on an app that has a numerical button pad. Of course something has to happen when a button is pressed, so I have to have an onClickListener for each button right? The problem is that I have 40 buttons in landscape mode so then I would have to create 40 different onClickListeners. I figure there must be a better way to do this. Do any of you have any advice?So I'm working on an app that has a numerical b




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: