mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 370 forks source link

docView.getDocumentLayoutParams().setLineHeightMultiplier(1.5f) doesn't work too #102

Open AseevEIDev opened 8 years ago

AseevEIDev commented 8 years ago

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

mathew-kurian commented 8 years ago

Try a larger value perhaps like 30f