Have you noticed menu items on the action bar. When you click you will see list of menu items to be clicked on. Given below is a overall look of a simple menu items created.
Normally menu items are used to ease the work of a user so that they can click any item and the activity or any event following the click can be seen on the screen. Previously we need to create menu items manually but nowadays, Android has provided an easy way out by supplying us with vivid types of activity while making a selection. But below I have provided a manual way in which you can create a menu items in android and using Kotlin language despite Java.
Try this simple example to create a menu.
Sample Code