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

Margin Space #15

Closed lancefluger closed 10 years ago

lancefluger commented 10 years ago

Is there a parameter for left and right margin space in using TextJustify ?

mathew-kurian commented 10 years ago

Not yet, you can try to add that. All you have to do is edit the starting horizontalOffset and the width.

Such that:

marginLeft <= horizontalOffset <= (textviewWidth - (marginLeft + margnRight));
lancefluger commented 10 years ago

Thanks for the tip!

Works perfectly for my app to add to the horizontalOffset to get my marginLeft and subtract from TextView width i.e. dirtyRegionWidth to get my marginRight.

Can add a pull request if it isn't too much of a hack.

mathew-kurian commented 10 years ago

Why don't you fork, add and then do a pull request.