Harmony鸿蒙实战开发-事件提醒app「事件名称/描述、提醒日期、提醒时长、延迟提醒次数、延迟提醒事件间隔」➕⏰声音【源码在文末】

Harmony鸿蒙实战开发-事件提醒app「事件名称/描述、提醒日期、提醒时长、延迟提醒次数、延迟提醒事件间隔」➕⏰声音🔊【源码在文末】

文章目录

运行工具:DevEco Studio

一、运行演示

1、首页

2、我的

3、待办提醒

4、编辑待办

5、编辑待办

二、部分代码

复制代码
/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License,Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import {ListInfo} from  "./ListInfo"
@Component
export struct UserBaseInfo {
  @State nickname: string = '用户001';
  @State signature: string = '测试用户';

  build() {
    Column() {
      // userIcon
     Column(){
       Image($r('app.media.ic_user'))
         .objectFit(ImageFit.Contain)
         .height(66)
         .width(66)
         .margin({ top: 71 })

       Column() {
         Text('LV.100')
           .fontSize(12)
           .fontWeight(FontWeight.Bolder)
           .fontColor('#c99411')
       }
       .width(44)
       .height(16)
       .margin({ top: '-8vp' })
       .border({ radius: 5})
       .backgroundColor('#d4e6f1')
       .justifyContent(FlexAlign.Center)

       // nickname
       Text(this.nickname)
         .fontSize(20)
         .margin({ bottom: 6 })
         .fontWeight(FontWeight.Normal)
         .fontColor('#000000')

       // signature
       Text(this.signature).fontSize(16).fontWeight(FontWeight.Normal)
         .fontColor('#66686a')
     }
     .backgroundImage($r('app.media.ic_dialog_smile'),ImageRepeat.NoRepeat)
     .backgroundImageSize({width:'100%'})
     .width('100%')
      .padding({bottom:15})
      Column(){
        ListInfo()
      }
    }.height('100%')
     .width('100%')
  }
}

6、提醒图标

三、源码

相关鸿蒙项目点此专栏

通过百度网盘分享的文件:...zip 链接:百度网盘 请输入提取码

文件已经加密,请点击下方名片获取源码

或:Lvnvn0508

相关推荐
程序猿追1 小时前
鸿蒙 PC 用 Tauri 做本地查找,怎样让慢请求给新请求让路
华为·状态模式·harmonyos
程序猿追5 小时前
鸿蒙 PC 用 Ionic 做巡检目录,缩窄窗口后草稿还在吗
华为·harmonyos
jianqiang.xue5 小时前
1颗NPU分时复用:鸿蒙把轻AI塞进了MCU
人工智能·单片机·mcu·嵌入式·harmonyos·鸿蒙·端侧ai
程序猿追8 小时前
鸿蒙 PC 用 Tauri 迁移配置文件,先保留旧版再写新版
华为·harmonyos
码间留白1 天前
AI 给的两个方案都被我否了:把 startIcon 与启动遮罩做成同一张图,鸿蒙 APP 冷启动零白屏
性能优化·uni-app·ai编程·harmonyos
二流小码农1 天前
鸿蒙开发:证书只能创建3个,第4个应用怎么办
android·ios·harmonyos
威哥爱编程1 天前
模拟面试智能体开发实战 12:每篇都能跑不等于接起来能跑,端到端联调收官把十一块拼图合成一个能用的智能体
python·agent·harmonyos
威哥爱编程1 天前
模拟面试智能体开发实战 11:报告只躺在后端怎么复盘,把总评搬上手机还要适配大小屏
python·agent·harmonyos
我闪了个去1 天前
一个 Scroll 撑起整个首页:HarmonyOS 7 懒加载布局把网格、瀑布流、吸顶分组装进一次滚动
harmonyos·arkts
二流小码农2 天前
鸿蒙开发:router组件升级,彻底告别手动配置
android·ios·harmonyos