1

I am rendering an image in a Fragment and using http caching on all image fetches. I'd like to anticipate the user switching orientation and fetch the other orientation while the user loads the initial orientation. I'm using getView().getWidth() and getView().getHeight() in the fragment. Is there a way to get the view's height and width in the orientation that the user is currently not on?

lf215
  • 1,185
  • 7
  • 41
  • 83
  • Give try to this that allow you to control the rotation event http://stackoverflow.com/a/11291621/5993599 – Creadev Tunisia Feb 28 '16 at 18:53
  • Give try to this that allow you to control the rotation event http://stackoverflow.com/questions/4843809/how-do-i-detect-screen-rotation/11291621#11291621 – Creadev Tunisia Feb 28 '16 at 19:04
  • OrientationEventListener is only helpful once the orientation has changed. I'd like to know what the dimensions will be without actually rotating. – lf215 Feb 28 '16 at 19:24

0 Answers0