我需要找到一种方法来检索使用下面列出的代码创建的复选框的选中状态:
for (int i = 0; i < cnt; i++) {
cb = new CheckBox(getApplicationContext());
TextView txt = new TextView(getApplicationContext());
final LinearLayout ll2 = new LinearLayout(
PollActivity.this);
ll2.setOrientation(LinearLayout.HORIZONTAL);
ll2.addView(txt);
ll2.addView(cb);
txt.setText(PersianReshape
.reshape(last_poll_array[i][1]));
txt.setTypeface(face);
ll.setGravity(Gravity.RIGHT);
ll2.setGravity(Gravity.RIGHT);
ll.addView(ll2);
}
sc.addView(ll);
任何指导将不胜感激。