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 小时前
LiteOS-M 切换汇编逐行图解(2):指令·异常机制·全景表
stm32·单片机·嵌入式硬件·harmonyos·鸿蒙系统
OH_TPC2 小时前
【鸿蒙优选三方库】@react-native-ohos/react-native-svg:SVG 矢量图形渲染组件
华为·harmonyos·鸿蒙
李游Leo4 小时前
HarmonyOS 7 实战开发 01:搭建内容工作台基础框架
harmonyos
大雷神6 小时前
【共创稿事节】HarmonyOS ArkGraphics 3D实操——给智能音箱做一间材质实验室
harmonyos
马剑威(威哥爱编程)7 小时前
【共创稿事节】HarmonyOS 7 Agent A2A 实战:让日程智能体和打车智能体自己谈成一单
pytorch·深度学习·harmonyos
范小兵7 小时前
# DevEco CLI实战:鸿蒙App「至客」从0开发到正式上架
前端·harmonyos
熊猫钓鱼>_>8 小时前
声临其境:HarmonyOS 空间音频全链路开发实战
音频·harmonyos·arkts·鸿蒙·arkui·空间·hap
Geek_Vison10 小时前
小程序容器如何抹平系统差异,让一个小程序运行在 iOS、安卓、鸿蒙和电脑端
小程序·uni-app·harmonyos·mpaas
大雷神10 小时前
【共创稿事节】HarmonyOS ArkGraphics 3D 实操:用 GLB 与 PBR 完成智能音箱外观预览器
harmonyos