I have some problem about how to add edittext into a checkbox. This is my code which use to create checkbox.
for(int i = 0; i < jsonArray.length(); i++) {
JSONObject obj = jsonArray.getJSONObject(i);
CheckBox cb = new CheckBox(OrderActivity.this);
EditText et = new EditText(OrderActivity.this);
cb.setText(obj.getString("color") + " | PO : " + obj.getString("po") + " | SO : " + obj.getString("so") + " | Available : " + obj.getString("dozen"));
cb.setId(i+10);
cb.setWidth(150);
ll.addView(cb);
}
How can I add edittext into that checkbox ?
And this is the result capture image.
Thank you before.
Aucun commentaire:
Enregistrer un commentaire