Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to "replace" fragment not to "add" in goToFragment() #22

Closed
mr-wolf-gb opened this issue Aug 5, 2018 · 2 comments
Closed

How to "replace" fragment not to "add" in goToFragment() #22

mr-wolf-gb opened this issue Aug 5, 2018 · 2 comments

Comments

@mr-wolf-gb
Copy link

all my fragment superposed in one page when i change
transaction.add(R.id.container, fragment).commit();
to
transaction.replace(R.id.container, fragment).commit();

application crash with error :

No view found for id 0x7f090054 (com.packa...:id/content) for fragment SFrag{48bbddc #8 id=0x7f090054}

help please

@mr-wolf-gb
Copy link
Author

done!

@1cornerstone
Copy link

Weldone, i also encounter this error( fragment keep changing to the first fragment view when i click on another fragment view). I got it solved , i just want to pull request i saw your solution. Salute

Screen Shot 2019-06-06 at 6 39 42 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants