import android.graphics.Paint;
class Main {
public static float GetTextWidth(String Sentence, float Size) {
Paint FontPaint = new Paint();
FontPaint.setTextSize(Size);
return FontPaint.measureText(Sentence.trim()) + (int) (Size * 0.1); // ???????
}
}