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

Top padding doesn't work #33

Closed samiksome92 closed 9 years ago

samiksome92 commented 10 years ago

currently top padding doesn't work with TextViewEx.java.

adding the following at line 159 of TextViewEx.java does provide a workaround, though its not perfect:

verticalOffset+=getPaddingTop();

I'm attaching screenshots with and without the workaround code.

no_workaround

Current code

with_workaround

Code with workaround added

samiksome92 commented 10 years ago

Padding used is 50, with a text size of 20, and background "@android:drawable/dialog_holo_light_frame"

mathew-kurian commented 10 years ago

Please refer to experimental version. More info on README.md.