Harmony与Android项目结构对比

主要文件对应

|---------------------------------------|-----------------------------------------------------|
| Android文件 | HarmonyOS文件 |
| 清单文件AndroidManifest.xml | module.json5 |
| Activity/Fragment | entryability下的ts文件 |
| XML布局 | pages下的ets文件 |
| res | resources |
| Module下的build.gradle | Module下的build-profile.json5 |
| gradle | hvigor |
| 根目录下的build.gradle | 根目录下的build-profile.json5 |
| colors.xmldimens.xmlstrings.xml...... | color.json:颜色 float.json:浮点型 string.json:字符串值...... |

相关推荐
钱栈up11 小时前
华为把 WATCH 5 的鸿蒙 7 卡在'充分测试'这道闸门口,到底在等什么?
华为·harmonyos
OH_TPC1 天前
@ohos/dataorm 源码解读(一):注解只是贴标签,建表语句由 BaseDao 按标签生成
harmonyos
IT大白鼠1 天前
华为设备 MQC 配置指南基于 Modular QoS Command-Line Interface 的模块化 QoS 实战
华为·mqc
钉先生贾2 天前
鸿蒙启动可靠性:把首屏依赖从“同时开始”改成可降级编排【鸿蒙心迹】
华为·php·harmonyos
钉先生贾2 天前
HarmonyOS API 26 ArkUI 性能定位:用帧预算拆解页面卡顿【鸿蒙心迹】
华为·harmonyos
普通人62 天前
uniapp鸿蒙开发完整指南
华为·uni-app·harmonyos
钉先生贾3 天前
HarmonyOS 7.0 工程升级实战 40:构建缓存导致旧产物混入时,怎样隔离变量与复查
缓存·华为·harmonyos
钉先生贾4 天前
HarmonyOS 7.0 工程升级实战 38:权限与声明迁移后,怎样验证失败路径而非只测成功
华为·harmonyos
晚霞的不甘4 天前
Flutter/OpenHarmony 三方库适配实战:google_maps_flutter 地图
flutter·macos·华为·cocoa·harmonyos·1024程序员节
钉先生贾4 天前
HarmonyOS 7.0 工程升级实战 37:依赖冲突只在特定构建变体出现时,怎样留下证据
华为·harmonyos