-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is this code works in java? #52
Comments
|
i tried this but it just gives me the default menu do i need to change something in the xml files? private void showMenu(View v, @MenuRes int menuRes) {
|
i have the same problem |
Hi, i just want to use this menu on my java code
private void showMenu(View v, @MenuRes int menuRes) {
Context context = v.getContext();
popup = new PopupMenu(context, v);
popup.getMenuInflater().inflate(menuRes, popup.getMenu());
The text was updated successfully, but these errors were encountered: