F
F
foonfyrick2021-03-07 18:47:45
Android
foonfyrick, 2021-03-07 18:47:45

Difference between fragment and FragmentContainerView tags?

All the time it is highlighted in yellow, and I do not understand why I should change the simple fragment tag to FragmentContainerView. What are their differences?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-03-07
@foonfyrick

The main difference is that FragmentContainerView will allow you to dynamically replace fragment at runtime while fragment will not.
And from this it already dances, there are all sorts of bells and whistles about the z-order to draw during the animation in the correct order.
PS fragment is really a tag, and FragmentContainerView is exactly a view, an analogue of FrameLayout.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question