Ok, let's see.
Your image is 31 pixels wide at 160 dpi (this is for -mdpi).
At 120 dpi (for -ldpi), its width would be: 31 * 120 / 160 => 23 pixels.
This is definitely not 16, as you got.
Do the same calculation for height, I bet my right arm it's not going to
be 27.
Then place the 31 by 53 image in "res/drawable" and the 23 by ? in
"res/drawable-ldpi".
-- Kostya
08.12.2010 19:10, Ganesh Kumar R. пишет:
Hi Kostya .,
You mean to say i need to reduce size (width x height) of the image.
My image size was 31x53 i resized to 16x 27 but while compiling my
application its giving errors on public.xml.
Is am following the right way ? I wrong pls correct me..,
thanks in advance...
by.,
ganesh r.
On Dec 8, 11:17 pm, Kostya Vasilyev<[email protected]> wrote:
Lower screen resolution = smaller image dimensions.
If your mdpi ("reference" image) is, just to pick a size, 48 by 48, then
the -ldpi version should be 36 by 36, and -hdpi, 72 by 72.
This is consistent with screen resolutions relative to each other: -mdpi
is 160 dpi, -ldpi is 120 dpi, and -hdpi is 240 dpi (dots per inch).
http://developer.android.com/guide/practices/screens_support.html#range
-- Kostya
08.12.2010 17:02, Suwon Ganesh пишет:
Hi All.,
Am face one problem. Could any one help me on this.
Actually I have one image file. If i place that image in drawable-mdpi
its coming properly in the devcie.
Same image if i place under drawable-ldpi its coming very big and
clipping problem is seen in the device.
How i can fix this.. any one kindly support me.
thanks.,
Ganesh r.
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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