Gabriel Simões wrote:
> I´ve read on the net about Android´s rule not to resize bitmaps on
> views (background, buttons, etc), is it true?

I do not know what you are referring to here. Some bitmaps (e.g.,
nine-patch PNGs) are designed to be resized.

> Does android rescale
> skinned views sizes the same way it resizes the default ones?

What is a "skinned view"?

> Also, if not, how can I handle the more than 5 display sizes using a
> background image and skinned buttons and scrollers (horizontal bar)?

In some cases, you will need multiple images for different screen sizes
or densities. In some cases, you can use nine-patch PNGs for resizing.
In some cases, Android's built-in bitmap scaling will be adequate. In
some cases, you will want to switch to creating Drawable resources in
XML (e.g., define your gradients that way, rather than doing so in a
bitmap).

Here is the documentation on multiple screen sizes:

http://developer.android.com/guide/practices/screens_support.html

Here are several blog posts on the subject:

http://www.androidguys.com/2010/02/16/handling-multiple-screen-sizes-part/
http://www.androidguys.com/2010/02/18/handling-multiple-screen-sizes-part-2/
http://www.androidguys.com/2010/02/23/handling-multiple-screen-sizes-part-3/
http://www.androidguys.com/2010/03/01/handling-multiple-screen-sizes-part-4/
http://www.androidguys.com/2010/03/02/handling-multiple-screen-sizes-part-5/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to