工作内容 |
1.复习 10分钟 2.学习uiOne Handset Developer Guide.chm “Running the UI on the TrigBuilder Simulator”, “AppFrame”相关内容: 3小时 3.学习HDK Programming Primer.chm appFrame一节 1.5小时 4.练习appFrame中 Writing source code 1.5小时 5.小组讨论 1小时
|
学习心得 |
1. page definition: 一般page def不会定义内容如何表现 ,仅仅说明load什么、处理哪些键盘事件和一般事件。 表现由layout template实现、内容由element tempate实现。(guide) 2. shared lib: AppFrame:支持title、softkey、lists、popup、page history, 及其他的共用组件 Type2Note:支持系统消息 3. 模板资源路径<template/>: 1)模板元素在 <template/elements>路径下 2)元素xxx的实现trigml片段在template/elements/[xxx]/impl>路径下 4. AppFrame 的Virtual File System (VFS)介绍 1)页面资源路径<pages/>,于theme无关 (theme-independent )的资源: a)每一页都有自己的子文件夹,如<pages/pgMainMenu>. b)每一页通过向AppFrameAdctor发送LoadPage事件来加载,并且需要参数 $idPage,以标示此页面的ID c)每一页的实现片段在<pages/$idPage/impl>路径下 d)可以通过LoadPage事件,把一个page加载到一个占位的group中(placeholder group 2)主题资源路径<theme/>,于主题相关的资源: 如theme/pages/pgDefault/imgBackground theme/elements/menuList/menuItem 3)startup资源路径,<startup/default>自动做两件事情: a)加载default page,位于template/pages/pgDefault/impl>路径下????,这是trig的main entry point b)包含( <include> )the background fragment <background/impl>.
|
遗留问题 |
1. appFrame中自动建立的xxx_VixenSkin和xxx_AtmoSkin有何区别,如何使用? 2. appFrame的skel/skin分离是什么意思,开发时如何遵循这一原则? |