Compare commits
No commits in common. "bea89c5c775050f0c61ba38eb4ea9be78573cd7b" and "dd0c64fb911c5863963b14249c535cffc974f211" have entirely different histories.
bea89c5c77
...
dd0c64fb91
|
@ -21,13 +21,6 @@ struct ImageAnimatorPage {
|
||||||
state: AnimationStatus.Running,
|
state: AnimationStatus.Running,
|
||||||
iterations: -1
|
iterations: -1
|
||||||
})
|
})
|
||||||
@Local animatorOption1: AnimatorOption = new AnimatorOption({
|
|
||||||
state: AnimationStatus.Initial
|
|
||||||
})
|
|
||||||
@Local animatorOption2: AnimatorOption = new AnimatorOption({
|
|
||||||
state: AnimationStatus.Initial,
|
|
||||||
reverse: true
|
|
||||||
})
|
|
||||||
build() {
|
build() {
|
||||||
Column(){
|
Column(){
|
||||||
Flex(){
|
Flex(){
|
||||||
|
@ -56,23 +49,7 @@ struct ImageAnimatorPage {
|
||||||
placeholderSrc:$r('app.media.loading'),
|
placeholderSrc:$r('app.media.loading'),
|
||||||
errorholderSrc:$r('app.media.failed')
|
errorholderSrc:$r('app.media.failed')
|
||||||
}),animatorOption:this.animatorOption
|
}),animatorOption:this.animatorOption
|
||||||
}).width(200).height(200).backgroundColor(Color.Orange).margin({top:30})
|
}).width(300).height(300).backgroundColor(Color.Orange).margin({top:30})
|
||||||
Text("动画显示第一帧").fontSize(20)
|
|
||||||
ImageKnifeAnimatorComponent({
|
|
||||||
imageKnifeOption:new ImageKnifeOption({
|
|
||||||
loadSrc:"https://gd-hbimg.huaban.com/e0a25a7cab0d7c2431978726971d61720732728a315ae-57EskW_fw658",
|
|
||||||
placeholderSrc:$r('app.media.loading'),
|
|
||||||
errorholderSrc:$r('app.media.failed')
|
|
||||||
}),animatorOption:this.animatorOption1
|
|
||||||
}).width(200).height(200).backgroundColor(Color.Orange).margin({top:30})
|
|
||||||
Text("动画显示最后一帧").fontSize(20)
|
|
||||||
ImageKnifeAnimatorComponent({
|
|
||||||
imageKnifeOption:new ImageKnifeOption({
|
|
||||||
loadSrc:"https://gd-hbimg.huaban.com/e0a25a7cab0d7c2431978726971d61720732728a315ae-57EskW_fw658",
|
|
||||||
placeholderSrc:$r('app.media.loading'),
|
|
||||||
errorholderSrc:$r('app.media.failed')
|
|
||||||
}),animatorOption:this.animatorOption2
|
|
||||||
}).width(200).height(200).backgroundColor(Color.Orange).margin({top:30})
|
|
||||||
}.width("100%").height("100%")
|
}.width("100%").height("100%")
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue