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 369 forks source link

Quality and space issue #113

Open SoerenBusse opened 8 years ago

SoerenBusse commented 8 years ago

Maybe you can have a quick look on this: http://stackoverflow.com/questions/36626526/textjustify-quality-issue This is very annoying

The library also cuts off some characters at the end? Why??

mathew-kurian commented 8 years ago

I will be addressing these concerns over the next few days. I will keep you posted.

As for the quality, you need to enable antialiasing and subpixel text.

layoutParams.setAntialias(true);
layoutParams.setSubpixelText(true);
SoerenBusse commented 8 years ago

Thank you! Would it be possible to make links clickable?

SoerenBusse commented 8 years ago

New informations? Error still exists and is anoying :)

mathew-kurian commented 8 years ago

Try this version

dependencies {
    compile 'com.github.bluejamesbond:textjustify-android:2.1.6'
}
SoerenBusse commented 8 years ago

Yop, I used that version. Same problem with the big space between characters

mathew-kurian commented 8 years ago

Can you share the minimum code that replicates this issue?

SoerenBusse commented 8 years ago
            DocumentView documentView = new DocumentView(context, DocumentView.FORMATTED_TEXT);
            documentView.getDocumentLayoutParams().setTextAlignment(TextAlignment.JUSTIFIED);
            documentView.setText("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit \n" +
                    "amet.");
SoerenBusse commented 8 years ago

Any new infos?

NabeelSidd commented 7 years ago

Hi Bluejames any updates on this issue?