Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Summary
You can optimize applications for Android, which can run on many different devices. Various terminologies are used for defining device screens, including density and resolution. The relationship between screen size, density, and resolution is such that, as long as density and resolution are increased by the same amount, screen size will remain unchanged. For spacing and layout, it’s best to use dp (density-independent pixel) units. Android groups devices based on dp.
You can use configuration qualifiers to select the most appropriate resources for the user’s device. The configuration qualifiers vary by flavor of Android and the device’s screen size and screen density. Using Google tools, you can also create launcher and notification ...
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.
Read now
Unlock full access