I want to create an activity with a title bar at top and a navigation bar at bottom. I used include
to include the title bar layout and the navigation bar layout in
In order to override the attributes of the layout you're including, you must also override both the layout width and layout height. If both of those settings are not overridden, any other layout changes you try will be ignored.
Your layout above
Should actually be with a wrap content or fill parent, as appropriate.