On 15 February 2011 15:03, Deepak Kumar <deepak.kumar...@gmail.com> wrote:

>                One of the solution can be multiplying these values with
> ratio (according to device).Is there any other way to do the same?

Don't think there're much alternatives. What I do is keep all the
values in dip in my code (for items I need to draw/adjust etc from
code) and on setting/drawing have them multiplied by
getResources().getDisplayMetrics().density and that's shall do the
trick ( +0.5f for rounding).

-- 
Regards,
Marcin

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

Reply via email to