Is there a method which returns the width ( in pixels ) of a text to be drawn on an Android canvas using the drawText() method according to the Paint used to draw it?
Have you looked at android.graphics.Paint#measureText(String txt)?