Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Wash something like this:
TextPaint paint = new TextPaint();
Rect bounds = new Rect();
paint.setTextSize();
paint.setStyle();
paint.getTextBounds(testString, 0, testString.length(), bounds);
int length= (int) Math.ceil((float) bounds.width() / currentSize);
//currentSize - ширина TextView учитывая падинги всякие
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question