[android-developers] configuration qualifiers xhdpi vs xlarge
hello there, i am working on a app that need to support tablets and for that i am keeping image resource under drawable-xhdpi it shows small images but if i rename the folder to drawable-xlarge it shows me big images can anybody explain this behavior? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] configuration qualifiers xhdpi vs xlarge
Those are two distinct things: screen size bucket (small/normal/large/xlarge) vs. screen pixels per inch density (ldpi/mdpi/hdpi/xhdpi). drawable-xhdpi is for images at 320dpi. If your tablet has 160dpi (a typical 1280x800, 10 tablet), Android will take the xhdpi images (lacking others) and scale them down by a factor of 160/320, that is, make them half the original size. drawable-xlarge is for images at 160dpi, targeting xlarge screens. Running on a typical 1280x80 10 tablet, those don't need any resizing and are used as is. -- Kostya 24.02.2012 16:39, technodHr пишет: hello there, i am working on a app that need to support tablets and for that i am keeping image resource under drawable-xhdpi it shows small images but if i rename the folder to drawable-xlarge it shows me big images can anybody explain this behavior? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] configuration qualifiers xhdpi vs xlarge
On Fri, Feb 24, 2012 at 4:46 AM, Kostya Vasilyev kmans...@gmail.com wrote: drawable-xlarge is for images at 160dpi, targeting xlarge screens. Running on a typical 1280x80 10 tablet, those don't need any resizing and are used as is. Just to be clear, it may be transiently typical that a 1280x800 10 tablet is mdpi, but it won't stay that way for long. The *only* good reason I know of to use a screen size qualifier with a drawable resource is if for some reason you want graphics to be slightly bigger on a larger screen. And for whatever reason you are doing that, you should *always* still specify the density the drawable is for. Actually, maybe it is time for aapt to start reporting errors if it is given drawables that don't have a density qualifier. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en