Measuring text width to be drawn on Canvas ( Android )

NioX5199 picture NioX5199 · Jul 15, 2010 · Viewed 74.5k times · Source

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?

Answer