这个是android4 以后的工作吧,应该和你的theme有关系.

解决方案 »

  1.   

    跟你这个属性有关android:showAsAction
    你去找下这个menu的属性是啥,值如果为"always"就会显示,还有"ifRoom"有空间的时候就显示。
      

  2.   

    这个是item的属性,如果是awayls就直接把文字显示在标题上。但是不显示menu的界面还是不显示
      

  3.   

    问题解决了,没有写这段代码: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;
    }