Welcome Android Developpers

Welcome Android Developpers
My name is Mathias Séguy, I am an Android Expert and Trainer and created the Android2EE company.

For full information, it’s here : Android2EE's Training
You can meet me on Google+, follow me on Twitter or on LinkedIn
Showing posts with label size. Show all posts
Showing posts with label size. Show all posts

Monday, November 14, 2011

Define your pictures for all densities : ldpi,mdpi,hdpi (and xhdpi if you target tablet)



Bandeau Conference

In my previous post we understood why we need to declare our images in the layout file in dp (density-independent pixels). Thus, whatever the density of the screen, the image is the "same" size.
The corollary is: if you define/declare your pictures (in the folder drawable) once regardless of the density, they'll appear coarse in hdpi (and also in ldpi).