I have an android menu because i needed a searchview inside of a toolbar. When i add ConfigChanges.ScreenSize | ConfigChanges.Orientation to my activity and the screen rotates, my menu is recreated (as expected). But when i travel to another xamarin forms page and rotate the screen, the screen goes back to the very first screen (i am assuming because there is only on activity an the screen rotation cause on create to fire, thus the only activity(the first activity) is reload). If i remove the setting ConfigChanges.ScreenSize | ConfigChanges.Orientation, and add OnConfigurationChanged(Configuration newConfig) , my screen is retained on rotation, but i lose my menu. How do i go about fixing this issue?
↧