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

DocumentView not scrolling #60

Closed sitilge closed 9 years ago

sitilge commented 9 years ago

Using the library TextJustify-Android I am not able to make the DocumentView scrollable. The text is shown correctly, justified, however the lower part is cut of instead of making it scrollable. I tried to put the DocumentView in ScrollView but then the text was not even shown...

screen shot 2015-01-26 at 16 56 47

mathew-kurian commented 9 years ago

@sitilge Remove the maxLines attribute. And don't put DocumentView inside a ScrollView because DocumentView is actually a type of ScrollView.

sitilge commented 9 years ago

@bluejamesbond Still not working... Updated SO: http://stackoverflow.com/questions/28065571/textjustify-android-not-loading-and-scrolling

mathew-kurian commented 9 years ago

I had modified your xml a bit for better consistency across multiple screens and it works fine for me. You can see my demo. I can post my demo on Github upon request.

It is possible that you are not calling documentView.requestLayout() after you set the text.

viktorelo commented 9 years ago

The link to your demo is broken, can you please fix it? I'm having the same issue as OP, but only on devices below API 14.