Androidプログラミング質問スレ Part21
■ このスレッドは過去ログ倉庫に格納されています
0154デフォルトの名無しさん
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);
■ このスレッドは過去ログ倉庫に格納されています