2017-04-07 30 views

回答

0

http://developer.android.com/guide/topics/ui/menus.html

瞭解更多^

public void Noactionbar(View v) { 
    PopupMenu popup = new PopupMenu(this, v); 
    MenuInflater inflater = popup.getMenuInflater(); 
    inflater.inflate(R.menu.actions, popup.getMenu()); 
    popup.show(); 
} 
+0

非常感謝你:) –