本文介紹了處理菜單項點擊事件 - Android的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想創建一個在單擊菜單項后啟動新活動的意圖,但我不確定如何執行此操作.我一直在閱讀 android 文檔,但我的實現不正確..一些正確方向的指導會有所幫助.我在下面列出了我的代碼并注釋掉了我的問題區域,我認為我調用了錯誤的方法.
I want to create an intent that starts a new activity once a Menu Item is clicked, but I'm not sure how to do this. I've been reading through the android documentation, but my implementation isn't correct..and some guidance in the right direction would help. I've listed my code below and commented out my problem areas, I think I'm invoking the wrong method.
推薦答案
創建菜單的簡單代碼
菜單項選擇的簡單代碼
您可以從下面的鏈接中找到更多詳細信息..
You can find more detail from below link..
菜單
菜單資源
這篇關于處理菜單項點擊事件 - Android的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!