1、@+id:自动生成R文件
@id:引用现有资源
2、menu 文件夹下面的布局文件对应
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}