December 2013
Beginner
416 pages
12h 45m
English
Your application already scales fairly nicely on screens of various sizes. That’s because it’s using relative layouts, and the layout widths and layout heights are set to match_parent or wrap_content instead of having the heights or widths hard-coded. This makes your application layout automatically grow or shrink to fill the screen. If you follow this technique as much as possible, you will make your layout more flexible in displaying correctly on different screen sizes and densities.
However, the app is slightly broken if it’s run on a very small screen, in that the text doesn’t quite fit in the buttons. Let’s fix that.
1. Create a new Android virtual device by editing the existing JellyBean AVD, ...
Read now
Unlock full access