How can I get a LinearLayout (or any other ViewGroup) to assume the size of it\'s child views rather than assuming the size of the background image?
This happens because the Android view calculates its minimum size based on its background drawable size.
Check my answer here in this another post which covers the same problem which will help you to achieve your layout configuration.