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打出的信息
KeyEvent event=new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU);
dispatchKeyEvent(event);
如果你要把你们弄一行显示,你只要把它们分成一组就行了
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);==========================================
还是不行啊,按钮还是分两行显示的
(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打出的信息