Click button on one Fragment and go to another Fragment

Asked

Viewed 16 times

0

Good morning!!

I got a problem.

on a button with click function

I use the code:

Fragmentmanager fragmentManager = getActvity(). getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); fragmentTransaction.add(R.id.home, new Planosfragment ()); fragmentTransaction.commit();

to be able to call another Ragment, but it is calling on top of the previous Ragment and the icons of a Ragment is on top of an icon of another Ragment all entangled.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.