2

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.

Rachel Gallen
  • 27,043
  • 20
  • 72
  • 79
Piyush
  • 2,539
  • 6
  • 37
  • 77

1 Answers1

5

You could prevent this by adding android:configChanges="orientation" to your activity in AndroidManifest file.

Check this out.

Community
  • 1
  • 1
SteD
  • 13,711
  • 12
  • 63
  • 74