On Sat, Jun 25, 2011 at 5:06 PM, [email protected]
<[email protected]> wrote:
> Hi There,
> when I try to set some text on an image from drawables, the drawText
> function messes up the Text position when used on different screens
> with different sizes or densities.Is there a way to get access to the
> bitmap BEFORE scaling or is there a way to put the text in accordance
> to the scaling?

Get the screen density and do your own scaling/translation as necessary.
For example, if you draw at (100, 100) for mdpi, draw at (150, 150) for hdpi,
etc.

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

Reply via email to