开发者

Creating menus by the normal user

开发者 https://www.devze.com 2023-03-08 07:31 出处:网络
I have a problem, I need to create menu items but I want the user to be able to do that through a GUI where he/she enters the name of the menu item in an开发者_StackOverflow社区 edit text and clicks a

I have a problem, I need to create menu items but I want the user to be able to do that through a GUI where he/she enters the name of the menu item in an开发者_StackOverflow社区 edit text and clicks a button to create it. How do I go about this. I will appreciate the help!


Whether you want to handle menu on user view ie menu as a button not menu key on emulator or device then you can treat menu as general view. you have to handle onclicklistener. in onclick() method create the view that you wan to display to the user.

Donot forget to vote the response if it is helpful for you.

Thanks Deepak

0

精彩评论

暂无评论...
验证码 换一张
取 消