I created arraylist strings
List<String> textArray = new ArrayList<String>();
and then I added the lines (which I get from edittext) to textArray as follows
String text = editText1.getText().toString();
textArray.add(text);
Now I created a button and you need to remove the row from the array when the button is clicked. But I do not know what to do. I know for arrays of bitmap images we clear the bitmap from the array using recycling, but please suggest me remove or clear the string from arraylist.
source
share