Reload Data in ListView When Change Orientation
-
25-09-2019 - |
Question
I have a listview that displays categories from my server. It works fine but when i change orientation it reloads it...
What should I do to avoid reloads ?
Thanks.
Solution
You could prevent this by adding android:configChanges="orientation"
to your activity in AndroidManifest file.
Check this out.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow