0
Hello, I’m having a problem saving the last user view position, e.g.:
The user goes sweeping the list and when clicking on a position the app opens a new Activity and when returning to the list it goes back to the top, in case it would have to go back to the position of the last selection.
I’ve been through it and I was able to solve it but I was using Listview, I used the:
lista = (ListView) findViewById(R.id.lst);
Parcelable posicaoFoco;
posicaoFoco = lista.onSaveInstanceState();
lista.onRestoreInstanceState(posicaoFoco);
Now I’m using Recyclerview but it does not accept.
Edit the code better for easy reading, try to put more complete codes to better illustrate your question
– Um Programador