When trying to add an imageView to a scrollView with a vertical layout, the imageView has a height that is much larger than the image that is displayed. The image is being scaled and displayed but there is a white blank space displayed above,thought the top is set as '10dp'. It works fine when the app is loaded for the first time.
1.Load the below app.js
2.Run it on Android Device (4.1)
3.Close and re-open the app by just tapping on the home.
4.After doing it for 4 - 5 times on an average you can see that the height is set to 10dp anymore.
Expected: There should be no space above the image, no matter how many times we launch the app.
Actual Behavior: There is some empty space above and below the image after folding and re-opening the app couple of times.