Open
工程目录修改 #2
工程目录修改 #2
Open
dhfAdd on Mar 21
Total: 2 files changed+43-0
@@ -14,6 +14,27 @@ Example:
14 14 
15![image](screenshots/device/animation.en.gif)15![image](screenshots/device/animation.en.gif)
16 16 
17+### Project Structure
18+```
19+├──entry/src/main/ets // Code area
20+│ ├──common
21+│ │ └──constants
22+│ │ └──Const.ets // Constants
23+│ ├──entryability
24+│ │ └──EntryAbility.ets // Application entry
25+│ ├──pages
26+│ │ └──Index.ets // Animation page entry
27+│ ├──view
28+│ │ ├──AnimationWidgets.ets // Animation components
29+│ │ ├──CountController.ets // Icon count controller component
30+│ │ └──IconAnimation.ets // Icon property animation component
31+│ └──viewmodel
32+│ ├──IconItem.ets // Icon
33+│ ├──Point.ets // Icon coordinates
34+│ └──IconsModel.ets // Icon model
35+└──entry/src/main/resources // Resource files
36+```
37+ 
17### Concepts38### Concepts
18 39 
19- Explicit animation (**animateTo**): provides a transition animation when the status changes due to the closure code.40- Explicit animation (**animateTo**): provides a transition animation when the status changes due to the closure code.
MREADME.md+22-0
@@ -14,6 +14,28 @@
14 14 
15![image](screenshots/device/animation.gif)15![image](screenshots/device/animation.gif)
16 16 
17+### 工程结构
18+```
19+ 
20+├──entry/src/main/ets // 代码区
21+│ ├──common
22+│ │ └──constants
23+│ │ └──Const.ets // 常量类
24+│ ├──entryability
25+│ │ └──EntryAbility.ets // 程序入口类
26+│ ├──pages
27+│ │ └──Index.ets // 动效页面入口
28+│ ├──view
29+│ │ ├──AnimationWidgets.ets // 动画组件
30+│ │ ├──CountController.ets // 图标数量控制组件
31+│ │ └──IconAnimation.ets // 图标属性动画组件
32+│ └──viewmodel
33+│ ├──IconItem.ets // 图标类
34+│ ├──Point.ets // 图标坐标类
35+│ └──IconsModel.ets // 图标数据模型
36+└──entry/src/main/resources // 资源文件
37+```
38+ 
17### 相关概念39### 相关概念
18 40 
19- 显式动画:提供全局animateTo显式动画接口来指定由于闭包代码导致的状态变化插入过渡动效。41- 显式动画:提供全局animateTo显式动画接口来指定由于闭包代码导致的状态变化插入过渡动效。