![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
鸿蒙
文章平均质量分 72
蓝不蓝编程
厦门大学计算机专业|前华为工程师
展开
-
用十种编程语言开发秒表应用-第八篇-鸿蒙ArkUI版
用十种编程语言开发秒表应用安卓Kotlin (安卓App)安卓Kotlin+Jetpack Compose(安卓App)Swift (iOS应用,采用SwiftUI)Dart(Flutter应用,跨平台,适用安卓、ios、mac、windows、web)微信小程序抖音小程序鸿蒙 (Java版)鸿蒙 (ArkUI版)Js+Html+Vue(H5应用)Js+Html+Vue+ElementUI(H5应用)其中微信小程序和抖音小程序已上线。鸿蒙ArkUI版开发工具DevEc原创 2022-11-12 22:42:17 · 336 阅读 · 0 评论 -
适合编程初学者的开源博客系统(鸿蒙ArkUI版)
为编程初学者打造入门学习项目,使用各种主流编程语言来实现。让想学编程的,一个都不落下。上述基本涵盖了当前编程开发所有主流语言(我这里说的主流,直白点讲就是互联网公司都在用的)。左侧为前端版本:安卓、iOS、鸿蒙、Flutter、Vue、uni-app。右侧为服务器端版本:Java、Python、Go、Php、NodeJS。原创 2022-11-12 22:31:20 · 1084 阅读 · 0 评论 -
零基础学鸿蒙编程-UI控件_DatePicker
什么是DatePickerDatePicker是一种日期滚轮式选择器.常见效果如下:1.基本用法效果图代码 <DatePicker ohos:height="match_content" ohos:width="match_parent"/>2.设置背景效果图代码 <DatePicker ohos:height="match_content" ohos:width="match_parent"原创 2021-10-22 19:33:05 · 308 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_TimePicker
什么是TimePickerTimePicker是一种时间滚轮式选择器.常见效果如下:1.基本用法效果图代码<TimePicker ohos:height="match_content" ohos:width="match_parent"/>2.设置背景效果图代码<TimePicker ohos:height="match_content" ohos:width="match_parent"原创 2021-10-22 19:32:47 · 324 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_Picker
什么是PickerPicker是一种滚轮式选择器.常见效果如下:1.基本用法效果图代码 <Picker ohos:height="120vp" ohos:width="match_content" ohos:max_value="100" ohos:min_value="0"/>2.设置背景效果图代码<Picker ohos:height="120vp" ohos:wi原创 2021-10-22 19:32:28 · 435 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_RoundProgressBar
什么是RoundProgressBarRoundProgressBar是用于展示进度的圆形UI控件.1.基本用法效果图代码 <RoundProgressBar ohos:height="100vp" ohos:width="100vp" ohos:progress="20"/>2.设置进度条颜色和粗细效果图代码 <RoundProgressBar ohos:height="100vp"原创 2021-10-22 19:31:57 · 352 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_ProgressBar
什么是ProgressBarProgressBar是用于展示进度的UI控件,.1.横向进度效果图代码 <ProgressBar ohos:height="match_content" ohos:width="match_parent" ohos:max="100" ohos:min="0" ohos:progress="70"/>2.纵向进度效果图代码<ProgressBar原创 2021-10-22 13:15:21 · 363 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_ToggleButton
什么是ToggleButtonToggleButton是一种用于显示开关状态的按钮控件,也Switch比较相似.基础样例1.普通开关效果图代码 <ToggleButton ohos:height="match_content" ohos:width="match_content"/>2.选中开关效果图代码<ToggleButton ohos:height="match_content" ohos原创 2021-10-21 22:56:08 · 341 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_Switch
什么是SwitchSwitch是一种用于显示开关状态的UI控件.基础样例1.普通开关效果图代码<Switch ohos:height="match_content" ohos:width="match_content"/>2.选中开关效果图代码<Switch ohos:height="match_content" ohos:width="match_content" ohos:mark原创 2021-10-21 22:55:37 · 457 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_RadioButton
什么是RadioButton、RadioContainerRadioButton和RadioContainer是用来显示一组单选框的,RadioButton就是单个单选框,RadioContainer就是这个组.基础样例1.展示一组单选框效果图代码1). 布局文件:activity_main.xml<RadioContainer ohos:id="$+id:radioContainer" ohos:height="match_content" ohos:widt原创 2021-10-17 21:50:46 · 367 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_CheckBox
什么是CheckBoxCheckBox是用于显示复选框的UI控件.基础样例1.普通复选框效果图代码<Checkbox ohos:height="match_content" ohos:width="match_content" ohos:text="我是Checkbox"/>2.选中状态效果图代码<Checkbox ohos:height="match_content" ohos:width="match_content"原创 2021-10-17 21:50:21 · 438 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_Image
什么是ImageViewImageView是用于显示图片的UI控件.基础样例1.展示本地图片效果图代码<Image ohos:height="match_content" ohos:width="match_content" ohos:scale_mode="clip_center" ohos:image_src="$media:beauty"/>图片文件放在resources/base/media下2.展示网原创 2021-10-17 08:38:45 · 7661 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_Button
什么是ButtonButton是用于显示按钮的UI控件.常见效果如下:基础样例1.普通按钮效果图代码 <Button ohos:height="match_content" ohos:width="match_content" ohos:text="我是Button"/>2.设置字号效果图代码<Button ohos:height="match_content" ohos:wid原创 2021-10-16 22:39:56 · 497 阅读 · 1 评论 -
鸿蒙中如何显示网络图片
效果图代码使用第三方开源库Glide加载网络图片Image image = (Image) findComponentById(ResourceTable.Id_image);Uri uri =Uri.parse("https://c-ssl.duitang.com/uploads/blog/202105/21/20210521205533_613b9.jpg");Glide.with(getContext()).load(uri).into(image);完整代码:build.gr原创 2021-10-16 17:00:42 · 650 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_TextField
什么是TextText是用于展示文本内容的UI控件.基础样例1.普通文本效果图代码<Text ohos:height="match_content" ohos:width="match_content" ohos:text="我是Text"/>2.设置字号效果图代码<Text ohos:height="match_content" ohos:width="match_content" ohos:text="我是大号T原创 2021-10-16 14:38:21 · 322 阅读 · 1 评论 -
零基础学鸿蒙编程-UI控件_Text
什么是TextText是用于展示文本内容的UI控件.常见效果如下:基础样例1.普通文本效果图代码<Text ohos:height="match_content" ohos:width="match_content" ohos:text="我是Text"/>2.设置字号效果图代码<Text ohos:height="match_content" ohos:width="match_content" ohos:tex原创 2021-10-16 14:23:37 · 421 阅读 · 1 评论 -
鸿蒙编译报错:Unable to find the java component with apiVersion 4.
问题现象SdkError: DOWNLOAD_SDK_ERROR > Cause: Unable to find the java component with apiVersion 4. > Solution: 1.Open SDK Manager and download java. 2.Alternatively, modify the compileSdkVersion settings in the project- and module-level build.g原创 2021-10-15 20:56:06 · 1634 阅读 · 0 评论 -
鸿蒙工程编译报错:check whether the ‘app‘ sub-tag ‘apiVersion‘ label is notEmpty
问题鸿蒙工程编译报错:Please check 'entry' module config.json, check whether the 'app' sub-tag 'apiVersion' label is notEmpty解决方案升级gradle版本1、如果启动项目,有这个提示,可以直接升级。2、 如果没有,可以手动修改build.gradle文件 dependencies { classpath 'com.huawei.ohos:hap:2.4.4.2'原创 2021-10-14 07:33:57 · 625 阅读 · 0 评论 -
用十种编程语言开发计算器应用-第十一篇-华为鸿蒙
用十种编程语言开发计算器应用C语言C#(windows桌面软件)Swift (ios应用)pythonDart(Flutter应用,跨平台,适用安卓、ios、mac、windows、web)Java(安卓App)Kotlin (安卓App)Js+Html+Vue(H5应用)微信小程序抖音小程序鸿蒙鸿蒙版开发工具DevEco Studio如何下载工程截图关键代码文件ability_main.xml 主界面布局MainAbilitySlice.java 主界面对原创 2021-10-12 22:18:51 · 865 阅读 · 0 评论 -
鸿蒙开发中vp和fp是啥?
vp和fpvp相当于安卓中dp;fp相当于安卓中的sp。官方参考资料https://developer.harmonyos.com/cn/docs/design/des-guides/basic-0000001055539104关于我厦门大学计算机专业|华为八年高级工程师十年软件开发经验,5年编程培训教学经验目前从事编程教学,软件开发指导,软件类毕业设计指导。所有编程资料及开源项目见https://cxyxy.blog.csdn.net/article/details/120405881原创 2021-10-12 18:13:51 · 1439 阅读 · 0 评论 -
华为鸿蒙Demo代码竟然编译不过,真是有点不该啊。
背景下载了鸿蒙官方demo中的二维码demo库, 但是编译却不通过,哎https://gitee.com/harmonyos/harmonyos_codelabs报错信息Execution failed for task ':entry:preBuild'.> Check if 'storeFile' is configured correctly, it can't be null or empty. Please configure 'debug' signingConfigs i原创 2021-10-12 18:12:14 · 1441 阅读 · 1 评论 -
鸿蒙开发工具(DevEco Studio)汉化版
目标将鸿蒙开发工具变成汉化版的。操作步骤打开Settings界面点击“Plugins”,搜索“Chinese”,选择第二个点击“Install”后重启开发工具。体验汉化版关于我厦门大学计算机专业|华为八年高级工程师十年软件开发经验,5年编程培训教学经验目前从事编程教学,软件开发指导,软件类毕业设计指导。所有编程资料及开源项目见https://cxyxy.blog.csdn.net/article/details/120405881...原创 2021-10-10 07:22:42 · 3264 阅读 · 1 评论 -
第一个鸿蒙工程-Java版(含模拟器创建)
安装鸿蒙开发工具的安装,参考安装鸿蒙开发工具-DevEco Studio创建第一个工程默认创建的工程语言是Js,可以自行选择“Java”安装模拟器选择“No Devices”》“Device Manager”点击“Login”在打开的网页中,使用华为账号登录点击后面的绿色箭头,启动模拟器即可。默认有多个模拟器,自己根据需要选择电视、手表、手机、pad等。启动模拟器画面如下运行工程点击上图中灰色的箭头按钮即可运行当前工程改一下代码可以打开resource原创 2021-10-10 07:17:35 · 399 阅读 · 0 评论 -
第一个鸿蒙工程(含模拟器创建)
安装鸿蒙开发工具的安装,参考安装鸿蒙开发工具-DevEco Studio创建第一个工程安装模拟器选择“No Devices”》“Device Manager”点击“Login”在打开的网页中,使用华为账号登录点击后面的绿色箭头,启动模拟器即可。默认有多个模拟器,自己根据需要选择电视、手表、手机、pad等。启动模拟器画面如下运行工程点击上图中灰色的箭头按钮即可运行当前工程改一下代码可以打开zh-CN.json文件,改一下里面的内容,最后看看效果怎么样。原创 2021-10-09 23:04:54 · 454 阅读 · 0 评论 -
安装鸿蒙开发工具-DevEco Studio
本文目标搭建鸿蒙开发环境操作步骤下载DevEco Studio打开官方下载网页:https://hmxt.org/deveco-studio安装DevEco Studio安装过程,直接无脑一路Next到终点即可。下面这一步,注意勾选下面两个红框。打开DevEco Studio下图直接点击“Agree”创建第一个工程关于我厦门大学计算机专业|华为八年高级工程师十年软件开发经验,5年编程培训教学经验目前从事编程教学,软件开发指导,软件类毕业设计指导。所原创 2021-10-09 23:04:15 · 1411 阅读 · 0 评论