How to remove white spaces between images stacked vertically in a linear layout?
Pressing after a long time. But this one will be helpful!
In android system there is a bug [I would call it a bug, make your own choices 😛 ]; If you have a linear layout and you stack two images vertically on the top of each other. The android system gives a gap between the two images. This is quite irritating and I have spent almost 6 hours getting rid of this.
The solution is:
Add the attribute:
android:adjustViewBounds=”true” in the ImageView you are using.
This will alleviate all the pain!
PS Thanks to the author of this post and the person who answered this :- http://stackoverflow.com/a/3899702/900732