鸿蒙开发引导页
·
鸿蒙开发引导页
一般第一次使用app,会有4个界面引导介绍app的使用,统称引导页。
一、效果图:

二、思路:
用swiper
三、关键代码:
Swiper(){
Stack(){
Image($r('app.media.yishi'))
.width('100%')
.height('100%')
Text('开学了好好学习')
.fontSize(28)
.fontWeight(600)
.fontColor('#1E1E1E')
.textAlign(TextAlign.Center)
.margin({top:350})
}
Stack(){
Image($r('app.media.yishi2'))
.width('100%')
.height('100%')
Text('日子这样过')
.fontSize(28)
.fontWeight(600)
.fontColor('#1E1E1E')
.textAlign(TextAlign.Center)
.margin({top:350})
}
四、项目demo源码结构图:

有问题或者需要完整源码的私信我,我每天都看私信的
更多推荐


所有评论(0)