I have an Activity containing a ListView. I populate the list using the SimpleCursorAdapter. When I launch the application, I can manually scroll down to the ListView (for example, to the 10th item). Then, when I rotate my phone, it destroys and re-creates my activity, and the ListView is recreated as expected.
But on my phone after the rotation, the newly created activity shows my ListView still in my manual scroll position (in this example, the 10th row). I'm sure my code does not call ListView.setSelection (int), so what causes this to reposition ListView?
It may seem pretty convenient, but thatβs not what I want. Is this part of ListViews behavior? If so, how to stop / redefine this re-positioning?
source share