摘要: 使用intent.........Intent intent=new Intent();intent.setClass(MenuClass.this, Setpage.class);startActivity(intent); 阅读全文
posted @ 2011-09-23 01:07 深海脚印 阅读(201) 评论(0) 推荐(0)
摘要: 1.menu.xml的建立.2.menuclass.java的建立,这个页面继承于activity,调用menu.xml里面的元素menu和item,然后写item被选中时,需要做的方法.3.其他页面如果需要用到这个menu菜单,直接继承这个menuclass类. "extends menuclass".加载menu.xml代码: @Override public boolean onCreateOptionsMenu(Menu menu) { this.getMenuInflater().inflate(R.menu.menu, menu); return true; } 阅读全文
posted @ 2011-09-23 01:04 深海脚印 阅读(439) 评论(0) 推荐(0)