Skip to Content
Hello, Android, 4th Edition
book

Hello, Android, 4th Edition

by Ed Burnette
May 2015
Intermediate to advanced content levelIntermediate to advanced
225 pages
5h 30m
English
Pragmatic Bookshelf
Content preview from Hello, Android, 4th Edition

All Screens Great and Small

Supporting different screen sizes, resolutions, and pixel densities is important because you want your application to look its best on as many Android devices as possible. Android will try to scale your user interface to fit the device, but it doesn’t always do a great job of it. The only way to tell is through, you guessed it, testing. Use the emulator types recommended in Gentlemen, Start Your Emulators to make sure your program works on the most common sizes.

As a test, try running the Tic-Tac-Toe program in the Nexus 9 emulator. You’ll find that the menu on the main activity and the board in the game activity look too small. That’s because all the sizes are specified in dps, but the tablet has a much larger ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Android, 2nd Edition

Learning Android, 2nd Edition

Marko Gargenta, Masumi Nakamura
Embedded Android

Embedded Android

Karim Yaghmour

Publisher Resources

ISBN: 9781680500875Errata Page