如何使菜单图标显示在标题旁边,如下面的动作栏图片? android如何使菜单图标与标题并排
这是我的程序图片,可以做到吗?请大家帮忙〜感谢
这里是我的代码
public void openOptionsMenu() {
// TODO Auto-generated method stub
super.openOptionsMenu();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
//call the base class to include system menus
super.onCreateOptionsMenu(menu);
int group1 = 1;
MenuItem bakchome = menu.add(group1,1,1,"Add News");
bakchome.setIcon(R.drawable.ic_menu_add);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch(item.getItemId()) {
case 1:
ProgressDialog progress1 = new ProgressDialog(News.this);
progress1.setMessage("Loading...please wait..");
progress1.setTitle("Planbiz");
new MyTask(progress1).execute();
Intent intent1 = new Intent(getApplicationContext(), News_Edit.class);
startActivity(intent1);
break;
}
return true;
}
对不起,我是新用户,不能上传图片。对不起,如果我不能很好地解释我的问题。
那么你可以使用自己的自定义设计 – 2012-07-13 09:17:36
如何我可以更改菜单图标的位置吗?我在这里看到了这种问题,但他们询问我想要的动作栏 – user1434388 2012-07-13 09:26:18