Make sure the layout_height of your root container is set to match_parent instead of wrap_content.
layout_height
match_parent
wrap_content