标签:android io java on c ad r as ui
@Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(0,1,1,R.string.exit); menu.add(0,2,2,R.string.about); return super.onCreateOptionsMenu(menu); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case 1: finish(); break; case 2: break; } return super.onOptionsItemSelected(item); }
标签:android io java on c ad r as ui
原文地址:http://blog.csdn.net/haifengzhilian/article/details/39348217