In your activity or fragment, create a PopupMenu instance, inflate the menu, set up a click listener, and show the menu. Here's an example implementation:
In this example, clicking the button will show a popup menu with three items. When an item is clicked, a toast message is displayed. This covers the basic implementation of a popup menu in Kotlin for Android.