Hello, when I pass to a fragment from another frag...
# android
h
Hello, 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.
Copy code
val compFragment = CompFragment()
 compFragment.arguments = bundle
 requireFragmentManager().beginTransaction().replace(R.id.comp_item, compFragment)
     .commit()
😶 8
u
Provide background color to all fragment
h
@Umar Ata, thanks for replying. I've done it, but doesn't help