Create a menu layout files in the Android Studio 3.0 Legend

When the start of a android app, android studio project did not see the menu folder: as follows:

When you want to add a button, the document will say a lot, through the project  res/menu to add a new action bar operation as XML files in the directory.

How to add it? As described in the following legend:

(1) Right-res first folder, and then select the following figure:

Then there will be the following page, select the Resource type drop-down menu bar, as shown below:

Finally, click OK on the line, this time you can see the menu folder already out;

(2) Next, the file folder, right menu, select the following:

  Click OK to enter the file name:

  The final effect is exemplified as follows:

Guess you like

Origin www.cnblogs.com/dylancao/p/12043720.html