Paint.measureText does not match the Arabic text. Here is what I tried:
I have a TextView tv1.
tv1.getWidth();gives 480, which is good. tv1.getPaint().measureText("المؤلف : عبدالرحمن ابن أبي بكر أبو الفضل السيوطي");gives 502, which is more than the width of the screen.
Bad result, since the text occupies about 80% of the line width! The result should be around 400.
Thank.
source
share