Thanks Dianne Hackborn, But then how one can set its single layout to work on all aspect rations. To solve the problem for long screens; I created a new folder layout-long and adjusted my lauouts. Wel it solved the problem for 480x800 but not for 480x854. Any generic solution ??
-- Best Regards, Atif Gulzar I ◘◘◘◘ Unicode, ɹɐzlnƃ ɟıʇɐ On Mon, Jan 25, 2010 at 11:06 PM, Dianne Hackborn <hack...@android.com>wrote: > Density and aspect ratio are completely unrelated. Density is the size of > the pixels, and we currently only support square pixels (which is what all > current devices have as far as I know). The aspect ratio is determined by > the number of pixels in th x and y dimensions, regardless of their density. > > On Mon, Jan 25, 2010 at 7:04 AM, Atif Gulzar <atif.gul...@gmail.com>wrote: > >> We can set the pixel values in custom views by multiplying them with >> >> this.getResources().getDisplayMetrics().density; >> >> This is ok when the screen aspect ratio is normal means not long >> >> But how can we set the pixels along Y-axis when the aspect ration is long. >> >> >> -- >> Best Regards, >> Atif Gulzar >> >> I ◘◘◘◘ Unicode, ɹɐzlnƃ ɟıʇɐ >> >> -- >> 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<android-developers%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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