Hoizontal drop down menu

I’m trying to find a way to create a horizontal drop down navigation bar that is controlled by XML.

I seen the vertical menu and I’ve modified it a bit to make it some what work but it’s really not allowing me to position everything correctly. Does anyone have a good way to do this?