2
I’m using the Navigationdrawer to display the page options, I adapted one of them to Fragmentactivity for the call of some functions right. But when declaring the transaction of the screens, it does not allow this way, only with Fragment without Activity together. That’s not how Fragmenttransaction works.
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.fragment_container, mFeedFragment);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();
Hello. I could explain better what you mean by "does not allow" and "does not work"?
– Pablo Almeida
Thus, if I use Fragmentactivity I cannot call using replace, which only accepts Fragment as it shows I have q change, I do not know if it has how to adapt to the q I wish. Seeing the possibility changed to findById that resumes what I want to use, the broker brand precisely q I should use from there the Fragmentactivity for what I’m using if it’s right, do not know the Manager and transaction allow this found nothing in the documentation.
– Kauan Kubaski