Android-如何判別CheckBox被勾選(複選元件)
語法:if((c1.isChecked())==true)
範例:
CheckBox c1 = (CheckBox) findViewById(R.id.checkBox1);
if((c1.isChecked())==true)
{
}
本文由 jashliaoeuwordpress 提供 原文連結