-
Notifications
You must be signed in to change notification settings - Fork 370
Library not clear #53
Comments
@samsoft00 Your code seems correct. The latest version of the build has not been pushed to maven yet. You are still using a rather beta edition. There is in fact a bug with the library. It has been fixed. I will push it in momentarily. Thank you for spotting it and I apologize for the problem |
Use version 2.0.3. Please look at the samples before you use it. There are some modifications done in order to address previous bugs. Let me know if issues persist. |
Use version 2.0.4. Let me know if you still have any issues. |
No Crashing again but no text display -> DocumentView documentView = new DocumentView(getActivity(), R.id.instruction); |
Provide some code — On Thu, Jan 15, 2015 at 2:53 AM, Oyewole S. Abayomi
|
Here is my code public class StartRegistrationFragment extends Fragment {
} |
This is my view <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:document="http://schemas.android.com/apk/res-auto"
style="@style/WizardPageContainer"
android:orientation="vertical">
<TextView style="@style/WizardPageTitle" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/review_icon"
android:layout_gravity="center"
android:padding="10dp"/>
<LinearLayout
android:id="@+id/discription_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:padding="10dp">
<com.bluejamesbond.text.DocumentView
android:id="@+id/instruction"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout> |
Your did not add DocumentView to a parent layout |
@bluejamesbond DocumentView to a parent layout? where and how? |
findViewById(R.id.desriptionWrapper).addView(documentView) |
@bluejamesbond i'm sorry, this is getting confused... This is reference to my layout==> Where i'm going to reference it here ==> can you help me with sample code! |
Thanks, it work now but i move the code to onResume()
Thanks |
@samsoft00 I don't believe you are supposed to put it in onResume as per Android contract. |
@bluejamesbond it crashed when i put it onCreate, remember this is fragment. Also, question. how do i reset the textSize! |
I think dere's alot to amend, i later discovered that the article is not fully loaded, only first append contents.. Check code
|
To be honest, i've spent hours trying to find a way to make use of this library and to attached it to view.. it was so difficult, can you help on how?
I want to make use of ArticleBuilder(), so how do i make reference to view where i have this --> <com.bluejamesbond.text.DocumentView xmlns:document="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="+id/instruction" />
here is my java code
Doing it this way generate error
Any Solution on how to relate the view and the java code together, if i'm not doing it right.. please let me know. Thanks
The text was updated successfully, but these errors were encountered: