nakka soft world !
Multi CheckBox 본문
728x90
public class TypeChoice extends Activity implements OnCheckedChangeListener{
CheckBox[] cbList;
cbList = new CheckBox[]{
(CheckBox)findViewById(R.id.ckboxIndian),
(CheckBox)findViewById(R.id.ckboxMedieval),
(CheckBox)findViewById(R.id.ckboxJapan),
(CheckBox)findViewById(R.id.ckboxAztec),
};
for(int i=0; i<cbList.length; i++)
{
cbList[i].setOnCheckedChangeListener(this);
}
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
switch(buttonView.getId())
{
case R.id.ckboxIndian:
{
if (isChecked) {
} else {
}
break;
}
}
}
728x90
'프로그래밍언어 > 안드로이드(Android)' 카테고리의 다른 글
안드로이드 개발환경 구축 - ADT 다운 (0) | 2014.06.01 |
---|---|
안드로이드 개발환경 구축 - JDK설치 (0) | 2014.06.01 |
Datepicker Popup사용하기 (0) | 2014.03.10 |
Datepicker 내장형 (0) | 2014.03.10 |
안드로이드 PC로 폰 제어 (0) | 2014.03.10 |
Comments