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

Inflating error on DocumentView #67

Open LeoMaldonado opened 9 years ago

LeoMaldonado commented 9 years ago

Hi, I compile TextJustfy in gradle and then, I try to use the exactly xml DocumentView of the example. But when i run my project, it crash with an inflating class error in the DocumentView. Can you help me?

estefaniamiguel commented 9 years ago

Could you show us your code?

sigrlami commented 9 years ago

@LeoMaldonado you are probably using some specific xml attribure, here is minimal view that works

    <com.bluejamesbond.text.DocumentView
        android:id="@+id/textDescription"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="18dp"
        android:layout_marginRight="10dp"
        ext:documentView_textAlignment="justified"
        ext:documentView_textColor="@android:color/darker_gray"
        ext:documentView_textFormat="plain"
        ext:documentView_textSize="16sp"
        ext:documentView_insetPaddingLeft="0dp"
        ext:documentView_insetPaddingRight="0dp"/>

You can add one-by-one other needed attributes and figure out which one causing error