文件名称:android Menu
文件大小:44KB
文件格式:ZIP
更新时间:2015-04-02 08:06:38
android Menu
Menu的基本用法public boolean onCreateOptionsMenu (Menu menu){ menu.add(0,MENU_UPLOAD,0,"上传"); SubMenu uploadMenu = (SubMenu) menu.addSubMenu(0,MENU_DOWNLOAD,1,"下载设置"); uploadMenu.setHeaderIcon(R.drawable.icon); uploadMenu.setHeaderTitle("下载参数设置"); uploadMenu.add(0,SUB_MENU_UPLOAD_A,0,"下载参数A"); uploadMenu.add(0,SUB_MENU_UPLOAD_B,0,"下载参数B"); menu.add(0,MENU_CLICK,2,"查看点击次数").setIcon(R.drawable.icon); return true; }
【文件预览】:
OptionMenuDemo
----.project(850B)
----proguard.cfg(1KB)
----src()
--------com()
----AndroidManifest.xml(685B)
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------drawable-mdpi()
--------layout()
--------values()
----assets()
----gen()
--------com()
----default.properties(363B)
----.classpath(280B)
----bin()
--------resources.ap_(10KB)
--------com()
--------OptionMenuDemo.apk(14KB)
--------classes.dex(4KB)