Android Question Measure text horizontally

adriano.freitas

Active Member
I need a function that returns me, in dip or int, the horizontal measure of a text, that is, how much it would occupy horizontally on the screen. It will actually be placed on a label, but I don't care which object the measurement is based on. Does anyone have any suggestions?

Ideally, it could be a Sub to which I send the text and it returns the measure.

Thanks
 
Top