Skip to content Skip to sidebar Skip to footer

Android 3 - Adding A Fragment To A Linearlayout: Fill_parent Does Not Work

I am trying to add a fragment programmatically to a LinearLayout, but the fragment does not stretch its content across the whole layouts height. It acts like wrap_content instead o

Solution 1:

Ok - this one was pretty dumb. I changed my container from a LinearLayout to a FrameLayout and voilà: it's working.


Post a Comment for "Android 3 - Adding A Fragment To A Linearlayout: Fill_parent Does Not Work"