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

Broken on API 21 when change portrait to landscape positions #147

Open maoshadow opened 6 years ago

maoshadow commented 6 years ago

the code run normally on emulator with API 24 changing portrait to landscape. but in a samsung galaxy S4 with API 21 when i turn to side my phone , portrait to landscape. Crash the app. Any suggestion? The code = <com.bluejamesbond.text.DocumentView xmlns:ext="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="fill_parent" ext:documentView_cacheConfig="auto_quality" ext:documentView_antialias="true" ext:documentView_hyphen="-" ext:documentView_textFormat="formatted" ext:documentView_text="@string/text_sobremeta1" ext:documentView_textAlignment="justified" ext:documentView_textColor="@color/textosParrafos" style="@style/parrafos"/>