Hello everybody, when I pass to a fragment from an...
# android
h
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
Clearly the 😶 reaction isn't working. Do you have trouble reading?