Open drakgoku opened 9 years ago
Actually I have the similar problem - sometimes text just isn't loaded.
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.
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