ImageView menuBtn; // vertical three dots
final PopupMenu popup = new PopupMenu(context, menuBtn);
popup.getMenuInflater().inflate(R.menu.test, popup.getMenu());
menuBtn.setOnTouchListener(PopupMenuCompat.getDragToOpenListener(popup));
Last active
August 29, 2015 14:16
-
-
Save mightyfrog/9d10c681092efa8c54d5 to your computer and use it in GitHub Desktop.
How to use PopupMenuCompat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment