Is there a way to connect a new fragment while the fragment is connected?

Asked 2 years ago, Updated 2 years ago, 46 views

The painting is very sloppy.

First of all, there is A.Layout. This layout has buttons, which call a layout with ListView only. And this layout comes up with a different fragment depending on which button you press.

In other words, when you press the button AA, the part AA is written on the ListView. And when I call another menu at AA, I want this fragment called AA to disappear and another fragment called BB to appear with a list view.

It's hard to explain. I don't know if you understand

fragment

2022-09-21 18:36

1 Answers

Is the part marked with the wave mark of A.layout a fragment display area? I think you can just grab the part with a container and replace it with replace() in Fragment Manager Transaction. If you search for Fragment Replace, you'll find a lot of data.


2022-09-21 18:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.