In my application, I have an image as background. When the application is in portrait mode, that's fine. But when it is in landscape mode, the image turns and is stretched.
I know that we can use the layout-land folder, but with this solution, all my layouts will be in double just for an image (not very logical..).
Is there another solution?
PS : My image is just a carbon texture so, a solution to prevent it to turn with orientation would be ok.
EDIT :
hotveryspicy, your solution works BUT, there are activities which have the property android:configChanges="orientation" (in the Manifest), and it doesn't work for them. How to solve this?
In fact, I use this property to save state when the orientation changes but it's not the good way to do that. I need to use onSaveInstanceState for that.
In the meantime, is there a solution which allows me to keep this bad solution?