- 154 名前:デフォルトの名無しさん mailto:sage [2012/04/23(月) 20:54:19.30 ]
- 超初心者の質問で申し訳ないんですが
こういうのってなんとかすっきり3行くらいで書けないもんでしょうか button01 = (Button) findViewById(R.id.button01); button01.setOnClickListener(this); button01.setOnLongClickListener(this); button02 = (Button) findViewById(R.id.button02); button02.setOnClickListener(this); button02.setOnLongClickListener(this); (略) button15 = (Button) findViewById(R.id.button15); button15.setOnClickListener(this); button15.setOnLongClickListener(this);
|

|