You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the "You should use only one type of Fragment" runtime exception after a bit of digging I found it was because I added both android.app.Fragment and android.support.v4.app.Fragment as sections. It's not clear from the docs this is a problem.
Maybe it's worth adding the following FAQ?
Q) Can I add both android.app.Fragment and android.support.v4.app.Fragment as new sections?
A) No, Fragments should of the same type.
Thanks for the lib btw
The text was updated successfully, but these errors were encountered:
scottyab
changed the title
Add to FAQ
Add to FAQ: You should use only one type of Fragment
Jan 12, 2015
Well, You can have only one time of fragment into your drawer. Because they have separate FragmentManager and it will cause a fragment overlapping if you use two different type of fragment.
But yes, I will add the new FAQ for this question. Thanks for your help
I ran into this problem today, I found out that I was using import android.app.Fragment;. When I changed it to import android.support.v4.app.Fragment;, the problem was solved. This might help others.
I ran into the "You should use only one type of Fragment" runtime exception after a bit of digging I found it was because I added both
android.app.Fragment
andandroid.support.v4.app.Fragment
as sections. It's not clear from the docs this is a problem.Maybe it's worth adding the following FAQ?
Q) Can I add both
android.app.Fragment
andandroid.support.v4.app.Fragment
as new sections?A) No, Fragments should of the same type.
Thanks for the lib btw
The text was updated successfully, but these errors were encountered: