SHow menu on the right side


On my screen I have a custom action bar.
I make my own images for actions.
Since the three dots menu is not available I made one myself.
But when I click the image the menu show but on the left side instead of on the right side.
I show the menu with the MenuShow action of the screen.


Please share any screenshors so that I can learn how to use those options