PopupMenu(弹出菜单):点击view后在view下面弹出的菜单
实现方法:
1.创建popup_menu
PopupMenu popupMenu = new PopupMenu(this, button);//button是popupMenu的宿主,也可以是其他任意view
popupMenu.getMenuInflater().inflate(R.menu.content_menu, popupMenu.getMenu());
2.弹出菜单
public void clicked(View view) {