Answer the question
In order to leave comments, you need to log in
How to use android.support.v4.app.Fragment and android.app.Fragment in one activity?
Good afternoon!
Can you please tell me if it is possible to use two different fragments (old and new) in the same activity?
android.support.v4.app.Fragment and android.app.Fragment
Answer the question
In order to leave comments, you need to log in
It is forbidden.
AppCompatActivity spawns a FragmentManager from the support library, which, in turn, can only work with Fragment from the support library.
A regular Activity spawns a FragmentManager from the SDK, which, in turn, can only work with a Fragment from the SDK.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question