菜单通常都是按下menu键,弹出的
如果要menu随Activity一同出现,无需按menu就可以在界面最下部显示菜单

解决方案 »

  1.   

    显示的时候模拟一次按键试试
    KeyEvent event=new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU);
    dispatchKeyEvent(event);
      

  2.   

    http://blog.csdn.net/android_tutor/article/details/5522913
    如果你要把你们弄一行显示,你只要把它们分成一组就行了
      

  3.   

    原来add函数的第一个参数是干这个的啊
      

  4.   


    public boolean onCreateOptionsMenu(Menu menu) {
    menu.add(0, Menu.FIRST + 1, 3, "删除").setIcon(
    android.R.drawable.ic_menu_delete);
    menu.add(0, Menu.FIRST + 2, 2, "保存").setIcon(
    android.R.drawable.ic_menu_edit);
    menu.add(0, Menu.FIRST + 3, 4, "帮助").setIcon(
    android.R.drawable.ic_menu_help);
    menu.add(0, Menu.FIRST + 4, 1, "添加").setIcon(
    android.R.drawable.ic_menu_add);==========================================
    还是不行啊,按钮还是分两行显示的
      

  5.   

    Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.casee.apptrack.a) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    Console打出的信息
      

  6.   

    介个……既然你不想让它隐藏 一直搁那放着的话 那就不需要用MENU吧……最下面放四个Layout 一字排开,然后加监听就好了吧?