[文章]HarmonyOSAPP开发-JAVA-Navigation体验分享

阅读量0
0
3
一、总体
1.技术相关
项目名称: Navigation
项目语言: JAVA
体验模板:Navigation
工具:deveco studio
2.内容相关
主要用于手势导航场景。
3.效果如下

二、体验开发步骤
1、建立项目
新建一个java的应用项目
然后构建完成项目后在jltf_template下new->module


2.选择的Navigation模板

3.登录华为开发者联盟账号,然后启动模拟器即可实现效果。
三、项目结构介绍
该模板使用轮播图说明功能作用,使用单选框选择具体设置内容,适用于功能介绍和设置等方面功能。
四、 关键代码(MainAbility)
public class MainAbilitySlice extends AbilitySlice {
private ViewCreateHelper viewCreateHelper;@Overridepublic void onStart(Intent intent) {    viewCreateHelper = new ViewCreateHelper(this);    setUIContent(viewCreateHelper.createComponent());}@Overridepublic void onActive() {    super.onActive();}@Overridepublic void onForeground(Intent intent) {    super.onForeground(intent);
五、完整代码地址:
https://gitee.com/jltfcloudcn/jump_to/tree/master/Navigation
附件:

回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友