Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to FAQ: You should use only one type of Fragment #2

Open
scottyab opened this issue Jan 12, 2015 · 2 comments
Open

Add to FAQ: You should use only one type of Fragment #2

scottyab opened this issue Jan 12, 2015 · 2 comments

Comments

@scottyab
Copy link

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

@scottyab scottyab changed the title Add to FAQ Add to FAQ: You should use only one type of Fragment Jan 12, 2015
@neokree
Copy link
Owner

neokree commented 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

@tarhe
Copy link

tarhe commented Apr 7, 2015

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.

Thanks @neokree for the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants