Retaining a menu bar across different views

I have a menu bar that needs to appear in all the views of my project. Instead of writing the menu bar code in every view, is there any better way which enables me to create the menu bar just once and use it across various views?

Yes, your UI should be composed of four components (or containers, eg, VerticalLayouts), namely, “header”, “menu”, “content”, “footer”.
You should attach your Navigator to the “content”. Its the “content” that works as the View swapper
This way, you can have your “header”, “menu”, & “footer” appear on each view, so to say, without re-coding or code duplication.