You should better explain the problem and post the relevant code.
OK Excuse me 4 my english
please see screenshot,my text is one line and is completely fit in label and width of text is equal with width of label
but after measuring width of text by using canvas the result is different(see result in screenshot),and text width is not equal with label's width
i think when the text completely is fit in a view,the text width and view width must be equal.is this wrong?
if you add this character "ـ" to end of text the line count will be 2 and height of text increased but the text width is still less than label's width(tested on 5'' device with density 1.5 and label width is 502 on my device)
and now my problem is this:
if my text is completely fit in label why my measured text width is less than label's width?
and if my text width is less than label's width why my line count and height of text after add an other character are increased?
please see my attached project
tnx again erel and stevel