【发布时间】:2011-01-27 11:23:51
【问题描述】:
如何设置 OnClickListener 以简单地告诉我从按钮数组中按下了哪个索引按钮。我可以使用数组更改这些按钮的文本和颜色。我是这样设置的。
TButton[1] = (Button)findViewById(R.id.Button01);
TButton[2] = (Button)findViewById(R.id.Button02);
TButton[3] = (Button)findViewById(R.id.Button03);
最多 36 个。
【问题讨论】: