https://kotlinlang.org logo
#android
Title
# android
h

Hovhannes

04/19/2021, 11:06 AM
Hello everybody, when I pass to a fragment from another fragment, the previous fragment is visible. What is the reason?  The height of all fragments are match_parent and background colors are different.
Copy code
val compFragment = CompFragment()
 compFragment.arguments = bundle
 requireFragmentManager().beginTransaction().replace(R.id.comp_item, compFragment)
     .commit()
stackoverflow 4
😶 5
d

Dominaezzz

04/19/2021, 11:57 AM
Clearly the 😶 reaction isn't working. Do you have trouble reading?