Skip to content Skip to sidebar Skip to footer

What Does Relative Layout Wrap_content Do?

I have a simple layout as follows. Even though, I set all attributes as wrap_content, the resulting layout fills the entire screen height wise. The individual layouts in themselves

Solution 1:

It is the android:layout_alignParentBottom="true" in your LinearLayout that is causing the RelativeLayout to stretch all the way to the bottom of the screen.


Post a Comment for "What Does Relative Layout Wrap_content Do?"