资源描述:
《mtk手机平台添加资源和菜单的方式84116》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、MTK手机平台添加资源和菜单的方式84116MTK手机平台添加资源和菜单的方式.txt18拥有诚实,就舍弃了虚伪;拥有诚实,就舍弃了无聊;拥有踏实,就舍弃了浮躁,不论是有意的丢弃,还是意外的失去,只要曾经真实拥有,在一些时候,大度舍弃也是一种境界。MTK手机平台添加资源和菜单的方式一、菜单的修改或增加:以一个例子的方式介绍如何添加一个菜单,例子如下:在主菜单的“设置”菜单下增加一个“我的设定”子菜单,“我的设定”下有两个子菜单:“我的设定1”和“我的设定2”,打开这两个菜单,分别显示一幅动画。步骤如下:1.在..plutommimmiSettingSe
2、ttingInc目录下的SettingDefs.h文件中增加如下内容:a.enumSTR_SETTING_LIST的最后增加三个字符串ID的声明:STR_MY_SETTING,STR_MY_SETTING1,STR_MY_SETTING2,b.enumSCR_SETTING_LIST的最后增加三个ScreenID的声明:SCR_MY_SETTING,SCR_MY_SETTING1,SCR_MY_SETTING2,c.enumIMG_SETTING_LIST的最后增加一个ImageID的声明:IMG_MY_SETTING,d.在..plutommimmiI
3、nc目录下GlobalMenuItems.h文件中enumGLOBALMENUITEMSID的最后增加三个菜单ID的声明:(有的是在本AP或模块的*Defs.h中声明)MENU_MY_SETTING,MENU_MY_SETTING1,MENU_MY_SETTING2,2.在..plutommiCustomerCustResourcePLUTO_MMI目录下的Ref_list.txt中添加三个字符串:STR_MY_SETTINGUndefined10MySettingMySetting我的设定我的设定STR_MY_SETTING1Undefined10M
4、ySetting1MySetting1我的设定1我的设定1STR_MY_SETTING2Undefined10MySetting2MySetting2我的设定2我的设定23.在..plutommiCustomerCustResourcePLUTO_MMIRes_MMI目录下的Res_Setting.c增加如下资源:ADD_APPLICATION_MENUITEM((MENU_MY_SETTING,MAIN_MENU_SETTINGS_MENUID,2,MENU_MY_SETTING1,MENU_MY_SETTING2,SHOW,MOVEABLEWIT
5、HINPARENT,DISP_LIST,STR_MY_SETTING,0));ADD_APPLICATION_MENUITEM((MENU_MY_SETTING1,MENU_MY_SETTING,0,SHOW,MOVEABLEWITHINPARENT,DISP_LIST,STR_MY_SETTING1,0));ADD_APPLICATION_MENUITEM((MENU_MY_SETTING2,MENU_MY_SETTING,0,SHOW,MOVEABLEWITHINPARENT,DISP_LIST,STR_MY_SETTING2,0));ADD_APPLIC
6、ATION_IMAGE2(IMG_MY_SETTING,CUST_IMG_PATH"\\MainLCD\\SubMenu\Settings\\MY_SETTING.GIF","MySetting.");ADD_APPLICATION_STRING2(STR_MY_SETTING,"MySetting","MySetting");ADD_APPLICATION_STRING2(STR_MY_SETTING1,"MySetting1","MySetting1");ADD_APPLICATION_STRING2(STR_MY_SETTING2,"My
7、Setting2","MySetting2");4.在..plutommiCustomerCustResourcePLUTO_MMIRes_MMI目录下的Res_MainMenu.c中修改如下:ADD_APPLICATION_MENUITEM((MAIN_MENU_SETTINGS_MENUID,IDLE_SCREEN_MENU_ID,5,MENU9102_INITIAL_SETUP,...改为:ADD_APPLICATION_MENUITEM((MAIN_MENU_SETTINGS_MENUID,IDLE_SCREEN_MENU_ID,6,MENU
8、_MY_SETTING,MENU910