And in some paragraphs it doesn,t draw first letter.
My code:
textView.getDocumentLayoutParams().setLineHeightMultiplier(1.5f); textView.getDocumentLayoutParams().setInsetPaddingLeft(6 + Reader.TextPadding); textView.getDocumentLayoutParams().setInsetPaddingRight(6 + Reader.TextPadding); textView.getDocumentLayoutParams().setTextColor(colorText); textView.getDocumentLayoutParams().setTextTypeface(TYPEFACE); textView.getDocumentLayoutParams().setTextSize(TypedValue.COMPLEX_UNIT_PX, Reader.dimenTextSize); textView.getDocumentLayoutParams().setTextAlignment(TextAlignment.JUSTIFIED); textView.getDocumentLayoutParams().setAntialias(true); textView.setDisallowInterceptTouch(false); textView.setText("my text with justify span"); textView.setDefaultSelectionColor(Reader.colorMark);
Unfortunately, setLineHeightMult doesn't change anything.
And in some paragraphs it doesn,t draw first letter. My code:
textView.getDocumentLayoutParams().setLineHeightMultiplier(1.5f); textView.getDocumentLayoutParams().setInsetPaddingLeft(6 + Reader.TextPadding); textView.getDocumentLayoutParams().setInsetPaddingRight(6 + Reader.TextPadding); textView.getDocumentLayoutParams().setTextColor(colorText); textView.getDocumentLayoutParams().setTextTypeface(TYPEFACE); textView.getDocumentLayoutParams().setTextSize(TypedValue.COMPLEX_UNIT_PX, Reader.dimenTextSize); textView.getDocumentLayoutParams().setTextAlignment(TextAlignment.JUSTIFIED); textView.getDocumentLayoutParams().setAntialias(true); textView.setDisallowInterceptTouch(false); textView.setText("my text with justify span"); textView.setDefaultSelectionColor(Reader.colorMark);
Photo is here: http://i2.imageban.ru/out/2016/01/29/b9247e5e5af27669c46d3344dc32985e.png