I Want To Implement Textwatcher For Dynamically Generated Edittexts And Want To Get Text In Those Edittexts
protected void updateTable() { // TODO Auto-generated method stub final TableLayout tl = (TableLayout) findViewById(R.id.settingtable); tl.removeAllViews(); for(i
Solution 1:
probably you will want to do this in separated for loops.
and to get the text entered in each EditText you need something like this:
ArrayList<String> textFromEditText = new ArrayList<>();
textFromEditText.add(pondedit.getText().toString());
dont forget to call the .toString(); method since the from EditText you get a Editable type object.
once you have your data ready in the ArrayList just call this in another for loop:
for(i = 0;i < textFromEditText.size();i++){
finalTextViewdeviceedit=newTextView(this);
//other code of your textView
deviceedit.setText(textFromEditText.get(i));
}
maybe somebody can complement my answer.
Post a Comment for "I Want To Implement Textwatcher For Dynamically Generated Edittexts And Want To Get Text In Those Edittexts"