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

Line is truncated #46

Closed ghost closed 9 years ago

ghost commented 9 years ago

screenshot_2015-01-05-02-21-56

The first line is truncated (The letter P is cut off) on API 15, lib 1.4

XML as follows:

<com.bluejamesbond.text.DocumentView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="xxx"
            android:textAppearance="@style/TextAppearance.AppCompat.Body1"
            document:antialias="true"
            document:textSubpixel="true"
            document:textAlignment="justified"
            document:textFormat="plain"
            document:textSize="@dimen/abc_text_size_body_1_material"
            document:textColor="@color/abc_primary_text_material_light"
            document:text="xxxx" />
mathew-kurian commented 9 years ago

Can you give me the whole text?

mathew-kurian commented 9 years ago

lol. I thought this was a spam question from your text. I'll look at it when I get back

mathew-kurian commented 9 years ago

Did you add padding? 'document: paddingTop="10dp"'

mathew-kurian commented 9 years ago

Thanks. Its fixed!

compile 'com.github.bluejamesbond:textjustify-android:1.5'
mathew-kurian commented 9 years ago

@lucastan I accidentally deleted your comment. But thanks for the tip!