Create menu for activity in Android
•
Android
Andrews creates a menu for activity for your reference. The specific contents are as follows
1. Right click res > New > Android XML file. 2. In the pop-up dialog box, find resource type, click the drop-down box on the right, select menu, and write the resource name (optional) in the file. 3. Then paste the following code into XML and modify it according to your needs
4. Add the following code to the activity you need to add the menu
end
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码