Hi I have a spinner for which I would like to change its entry. I have created an array in the values folder. I know that I can edit the entry of the spinner by right clicking on it. But I want to know, how can I change the entry of the spinner using code. I was hoping there would be something like spinner5.editEntries
Can someone help please?
If you want to change item in spinner at position 3 (which is “30” in example),
Set value at that position e.g.
arrmile[3] = "enter new value you want";and after that call
adapter.notifyDataSetChanged();then value at that position will be get updated.