随笔分类 -  AA鸿蒙系统APP开发

摘要:错误模拟器启动失败,当前Windows操作系统版本过低,请升级到Windows10(OS build 18363及以上)。 阅读全文
posted @ 2024-08-02 20:23 txwtech 阅读(171) 评论(0) 推荐(0) 编辑
摘要:hvigor ERROR: Failed :entry:default@SignHap... > hvigor ERROR: Failed to find the incremental input file: C:\Users\8\.ohos\config\auto_debug_MyApplica 阅读全文
posted @ 2024-06-27 20:38 txwtech 阅读(295) 评论(0) 推荐(0) 编辑
摘要:import ark from '@system.ark'; import { View, Text, Button } from '@ui'; @Entry @Component struct MyComponent { @State color: string = '#ff0000'; // 初 阅读全文
posted @ 2024-05-04 14:18 txwtech 阅读(1030) 评论(0) 推荐(0) 编辑
摘要:arks_arkui如何代码激活一个控件组件呢? 阅读全文
posted @ 2024-05-04 11:03 txwtech 阅读(5) 评论(1) 推荐(0) 编辑
摘要:arkts导入不同目录ts函数的方法 ./当前目录下的ts,点斜杠 ../上级目录下的文件夹目录下的ts,点点斜杠 阅读全文
posted @ 2024-05-02 23:42 txwtech 阅读(84) 评论(0) 推荐(0) 编辑
摘要:在textarea中,如果您更新了值,光标将被移动到末尾。如果要保持光标的位置,可以在更改value属性之前保存它,然后在更改后更新它。 修改前 代码语言:javascript savedPosition = textarea.selectionEnd 修改后 代码语言:javascript tex 阅读全文
posted @ 2024-05-02 23:36 txwtech 阅读(40) 评论(0) 推荐(0) 编辑
摘要:arkts ArrayBuffer转string,字节转字符串 https://blog.csdn.net/m0_62167422/article/details/137090415 TextEncoder源码(部分API在since 9 已废弃): 工具类文件: xx.ts import util 阅读全文
posted @ 2024-05-02 22:46 txwtech 阅读(1491) 评论(0) 推荐(0) 编辑
摘要:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V2/js-apis-inner-application-applicationcontext-0000001477981357-V2#ZH-CN_TOPIC_0000 阅读全文
posted @ 2024-04-30 23:07 txwtech 阅读(232) 评论(2) 推荐(0) 编辑
摘要:arkts为通知添加行为意图--点击按钮执行时闪退 UI 参考: https://blog.csdn.net/qq_53123067/article/details/135624788 各位老师帮忙看下哪里不对呢? let wantAgentObj = null; // 用于保存创建成功的wantA 阅读全文
posted @ 2024-04-22 20:55 txwtech 阅读(52) 评论(0) 推荐(0) 编辑
摘要:PixelMap是图片解码后的像素图,以下示例将加载的网络图片返回的数据解码成PixelMap格式,再显示在Image组件上, 1.创建PixelMap状态变量。 @State image: PixelMap = undefined; 复制 2.引用多媒体。 请求网络图片请求,解码编码PixelMa 阅读全文
posted @ 2024-04-21 15:56 txwtech 阅读(526) 评论(0) 推荐(0) 编辑
摘要:胶囊按钮样式 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:shape="rectangle"> <corners ohos:radius="100 阅读全文
posted @ 2024-03-25 21:50 txwtech 阅读(40) 评论(0) 推荐(0) 编辑
摘要:config.json声明权限配置方法 阅读全文
posted @ 2024-03-24 22:19 txwtech 阅读(48) 评论(0) 推荐(0) 编辑
摘要:教程认证考试: https://developer.huawei.com/consumer/cn/training/dev-cert-detail/101665624627448188 https://developer.huawei.com/consumer/cn/ https://develop 阅读全文
posted @ 2024-03-22 14:15 txwtech 阅读(64) 评论(0) 推荐(0) 编辑
摘要:鸿蒙系统应用开发app_java(ScrollView)滚动组件 <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:height ="matc 阅读全文
posted @ 2024-01-27 21:05 txwtech 阅读(31) 评论(0) 推荐(0) 编辑
摘要:btn_state_container.xml p115 <?xml version="1.0" encoding="utf-8"?> <state-container xmlns:ohos="http://schemas.huawei.com/res/ohos"> <item ohos:state 阅读全文
posted @ 2023-12-26 21:31 txwtech 阅读(30) 评论(0) 推荐(0) 编辑
摘要:鸿蒙app java代码构建用户界面 background_ability_main.xml <?xml version="1.0" encoding="UTF-8" ?> <shape xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:sha 阅读全文
posted @ 2023-12-16 21:54 txwtech 阅读(129) 评论(3) 推荐(0) 编辑
摘要:DevEco studio 本地模拟器Haxm安装失败 解决参考文档: https://developer.harmonyos.com/cn/docs/documentation/doc-guides/faq-local-emulator-0000001116085454#section870872 阅读全文
posted @ 2023-12-16 15:30 txwtech 阅读(512) 评论(0) 推荐(0) 编辑
摘要:The type of the target device does not match the deviceType configured in the config.json file of the selected module. 在entry->src->main->config.json, 阅读全文
posted @ 2023-12-10 09:35 txwtech 阅读(615) 评论(0) 推荐(0) 编辑
摘要:鸿蒙app获取文本控件按钮控件_修改控件名称_按钮触发事件_提示信息显示 package com.example.myapplication.slice; import com.example.myapplication.ResourceTable; import ohos.aafwk.abilit 阅读全文
posted @ 2023-12-09 21:55 txwtech 阅读(105) 评论(0) 推荐(0) 编辑
摘要:预览中显示屏幕坐标系设置 阅读全文
posted @ 2023-12-09 20:03 txwtech 阅读(39) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示