title: Android custom dropdown/popup menu
body: <p>How do I do a custom dropdown/popup menu anchored to a button?</p>
  
  <p>I need it to work like the popup menu (anchored to a view), and do something when I click an item from the menu. </p>
  
  <p>How do I add items to the menu by code, keeping menu's height and make it scrollable if there are more than 5 items. I don't need to add any images, just text.</p>
  
  <p><img src="https://i.stack.imgur.com/eGciL.png" alt="enter image description here"></p>