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 picture. Show all posts
Showing posts with label picture. Show all posts

Tuesday, January 17, 2012

Android Design for ICS

Bandeau Conference
Hello and happy new Year :o)
You want to make an Android application, for multiple devices, excellent ! But before take few minutes to read what are the design guide lines. Google just open a web site to explain those guidelines. The article is simple clear and complete. So just read it :
http://developer.android.com/design/index.html
This article is really good for all the GUI stuff, you should read it , even if you are on Froyo, just to have a clear vision on GUI guide line and ressources.

(Anyway, keep in mind 3.9% of the devices have an SDK version greater than 2.3. see Android target, so not all is your concern )
Okay, this is the today news :o)

So, Thanks who?
Thanks, Android2ee, the Android Programming Ebooks :o) Android Training :o)

Mathias Séguy
mathias.seguy.it@gmail.com
Auteur Android2EE
Ebooks to learn Android Programming.
AndroidEvolution
Meet me on  Google+
Follow me on Twitter
or on LinkedIn ou Viadeo

Monday, November 14, 2011

Define your picture in dp not in px


Bandeau Conference

When defining an image (here, for example, use an image 73 pixels wide and 29 pixels high), you tend to write:

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).