Skip to content Skip to sidebar Skip to footer

Dialogfragment Not Floating, Acts Embeded Or As Another Fragment

I have this app, that I created a custom dialog for. I must of goofed something up cause while the .show call on the dialog does indeed bring it up, it looks like a whole new frag

Solution 1:

Your constructors are wrong. Try to have just one static method newInstance to instantiate the fragment for all cases and use a Bundle to store the arguments that you want to use in the fragment. Refer to Basic Dialog section here and extend it to your case.


Post a Comment for "Dialogfragment Not Floating, Acts Embeded Or As Another Fragment"