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

Hovhannes

04/19/2021, 7:26 AM
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

Umar Ata

04/19/2021, 10:25 AM
Provide background color to all fragment
h

Hovhannes

04/19/2021, 11:05 AM
@Umar Ata, thanks for replying. I've done it, but doesn't help
2 Views