Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

setText() does not work sometimes #130

Open
akshay7692 opened this issue Jan 20, 2017 · 0 comments
Open

setText() does not work sometimes #130

akshay7692 opened this issue Jan 20, 2017 · 0 comments

Comments

@akshay7692
Copy link

akshay7692 commented Jan 20, 2017

I am fetching a text file from storage and displaying its contents using Document View's setText() method. However, I noticed that setText() fails to display text sometimes. I tested it several times but once in a while, it just doesn't display anything. I don't get any errors/warnings and I verified that text is always fetched from text file and is not null or empty just before setText() is called.

My DocumentView looks like this :

<com.bluejamesbond.text.DocumentView xmlns:ext="http://schemas.android.com/apk/res-auto"
           android:id="@+id/about_us"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:layout_below="@+id/directors_layout"
           android:layout_marginTop="@dimen/activity_vertical_margin"
           ext:documentView_antialias="true"
           ext:documentView_cacheConfig="no_cache"
           ext:documentView_insetPaddingLeft="@dimen/activity_horizontal_margin"
           ext:documentView_insetPaddingRight="@dimen/activity_horizontal_margin"
           ext:documentView_textAlignment="justified"
           ext:documentView_textColor="@color/secondary_text_color"
           ext:documentView_textSubPixel="true" />
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant