What was wrong is that it does not fill the parent, but instead make it have the same dimension as the parent, or in other words match the parent dimension. The only case in which it does fill the parent is when the view is the single one in the layout.