Android provides some useful formatting tools when it comes to fine tuning our screen designs, including a way to specify relative size priorities for individual views and view groups. When one considers the wide variety of screen sizes and aspects that our application may end up running on, it is essential to be able to have a generalized control over the screen.
Start up a new Android project in Eclipse and from the res/layout/main.xml
Graphical Layout tab, drag three TextViews onto the form, one beneath another. Also delete the default TextView.
From the Graphical Layout view change the layout width and height of the one at the bottom to
MATCH_PARENT
in both cases. This is easily achieved without having to edit the XML directly by right-clicking on the widget and selecting Layout Height and Layout Width from the pop-up menu.Change the layout height of the middle TextView to
MATCH_PARENT
in the same way.Finally, change the layout height...