Saturday, April 30, 2011

Re: [android-developers] How to get the text height

On 30 April 2011 12:49, a a <harvey.acer@gmail.com> wrote:
paint.measureText("text")  return the width, how can i get the height
of the "text"?

value you used in setTextSize() * screendensity factor shall mostly give what you want.

Regards,
Marcin Orlowski

Tray Agenda - keep you daily schedule handy...
Date In Tray - current date at glance...
WebnetMobile on Facebook and Twitter

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment