asdsolutions-os / duo-navigation-drawer

A flexible, easy to use, unique drawer library for your Android project.
http://psdcompany.nl/
Apache License 2.0
1.1k stars 191 forks source link

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

Closed mr-wolf-gb closed 6 years ago

mr-wolf-gb commented 6 years ago

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 commented 6 years ago

done!

1cornerstone commented 5 years ago

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