You might have noticed in the new Play Music application (from version 5.0.0 onwards) the three dots close to every song, popping up a context menu:
I prefer the looks of these points when compared to the old triangle, similar to a spinner. I know this shouldn't be that difficult to implement from scratch, my question is:
Is there any new standard way of implementing this pattern (much alike the new Navigation Drawer pattern on the top-left side)?
Thanks in advance.
For a showing a popup list from a menu resource, use PopupMenu, (or PopupMenuCompat for API below 11).
For a more complex list where you specify the adapter yourself, use ListPopupWindow (or ListPopupWindowCompat API below 11).
That is the ListPopupMenu basically all you have to do is create an imageview with that drawable and call the ListPopupMenu
on the image click
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With