-3
我見過很多應用程序 沒有任何操作欄 但是有菜單如何? 喜歡這幅畫 enter image description here 如何創建這個如何添加沒有酒吧的菜單
我見過很多應用程序 沒有任何操作欄 但是有菜單如何? 喜歡這幅畫 enter image description here 如何創建這個如何添加沒有酒吧的菜單
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();
}
非常感謝你:) –
是, 可以使用PopMenu,通過它可以顯示出與操作欄菜單。 – ViramP
我是否創建onCreateOptionsMenu? –
如果你將創建選項菜單,那麼你將如何實際調用CreateOptionMenu – ViramP