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

textview justify library (bluejamesbond) not showed #83

Open drakgoku opened 9 years ago

drakgoku commented 9 years ago

I am using a library called bluejamesbond/TextJustify-Android but I can not see the result, the text does not appear.

My main code is (Java) DocumentView documentView = new DocumentView(getActivity(), R.id.blogText); documentView.getDocumentLayoutParams().setTextAlignment(TextAlignment.JUSTIFIED); documentView.setText(getResources().getString(R.string.acerca_texto4));

My main code is (Xml) <com.bluejamesbond.text.DocumentView xmlns:ext="http://schemas.android.com/apk/res-auto" android:id="@+id/blogText" android:layout_width="fill_parent" android:layout_height="fill_parent" ext:documentView_cacheConfig="auto_quality" ext:documentView_antialias="true" ext:documentView_hyphen="-" ext:documentView_reverse="false" ext:documentView_textAlignment="justified" ext:documentView_textFormat="plain" ext:documentView_textSize="14sp" ext:documentView_textSubPixel="true" />

Thanks for their help

http://stackoverflow.com/questions/31240228/textview-justify-library-bluejamesbond-not-showed

KChernenko commented 9 years ago

Actually I have the similar problem - sometimes text just isn't loaded.

mathew-kurian commented 9 years ago

My test cases do not show this issue. Possibly something very specific to your setup. I recommend that you set ext:documentView_cacheConfig to no_cache. Additionally, ensure you are actually setting the text.