Which way to open a menu with a button?

Hello,

it’s my first time with Kotlin, so i try to create a life counter for magic the gathering in Android Studio.

My problem is, that I don’t know how i can use a button for opening a menu. So I designed two xml files and now I want the button on the first picture on the bottom end of the grey part to open the menu (second picture). But do I use fragments or the menu bar or just open another activity on top?

Thank you all in advance 🙂

https://preview.redd.it/zlbkoa3xazfc1.png?width=424&format=png&auto=webp&s=b855f081ffe97f31a7d11a9746f62fbcccf26187

https://preview.redd.it/s8p6ff3xazfc1.png?width=275&format=png&auto=webp&s=d58ea0ea20234bac8bd53b694a264b20e45e9651

submitted by /u/Jakl08
[link] [comments]