2014-07-15 64 views

回答

3

這是一個PopupMenu。你可以這樣做你自己:

PopupMenu popupMenu = new PopupMenu(
      context, 
      anchorView); 

    popupMenu.inflate(R.menu.my_menu); 

    popupMenu.setOnMenuItemClickListener(listener); 
    popupMenu.show(); 
相關問題