Hy, I wanna ask something about dynamic EditText
that's added by button click.
I have another scanner Button
to scan qr code, get the value and set the value in each EditText
added. To set the text I sure need to know the id of each EditText
. So how do I assign id to each EditText
or there's another way to work around with it.
Inside my add-button onclick
public void addView(View view){
LinearLayout li = (LinearLayout) findViewById(R.id.etMsisdn);
edt = new EditText(this);
edt.setId(0);
li.addView(edt);
}
Thank you very much