Android 3 - Adding a Fragment to a LinearLayout: fill_parent does not work

前端 未结 1 725
孤城傲影
孤城傲影 2020-12-17 15:52

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 in

相关标签:
1条回答
  • 2020-12-17 16:06

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

    0 讨论(0)
提交回复
热议问题