I am dynamically assigning Fragments to FrameLayout containers in my main_activity.xml. In my onCreate() function, I first add a Fragment to my displayContainer using: