Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-09-18 16:55:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
71dab2e08ee0157e01fb3271a4cc525e506e8501
71dab2e0
1 parent
d2e7878d
fix: 音频悬浮窗关闭按钮比播放按钮尺寸偏大
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
View file @
71dab2e
...
...
@@ -35,6 +35,7 @@ struct Index {
@State @Watch("moveWindow") windowPosition: Position = { x: vp2px(12), y: vp2px(576) };
private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.All });
private subWindow:window.Window | null = null
@State start: boolean = true
async aboutToAppear() {
this.subWindow = window.findWindow("subWindow")
...
...
@@ -108,12 +109,13 @@ struct Index {
Stack({ alignContent: Alignment.End }) {
Column() { //标题 时间 进度条
Marquee({
start: t
rue
,
start: t
his.start
,
step: 5,
loop: Number.POSITIVE_INFINITY,
fromStart: true,
src: this.audioTitle
})
.marqueeUpdateStrategy(MarqueeUpdateStrategy.DEFAULT)
.width("60%")
.height(20)
.fontColor('#222222')
...
...
@@ -124,9 +126,10 @@ struct Index {
// .onStart(() => {
// console.info('Marquee animation complete onStart')
// })
// .onBounce(() => {
// console.info('Marquee animation complete onBounce')
// })
.onBounce(() => {
console.info('Marquee animation complete onBounce')
this.start = false
})
// .onFinish(() => {
// console.info('Marquee animation complete onFinish')
// })
...
...
@@ -186,8 +189,8 @@ struct Index {
}))
Image($r("app.media.icon_audio_close"))
.objectFit(ImageFit.Contain)
.width(32)
.height(32)
.width(24)
.height(24)
.gesture(
TapGesture()
.onAction((event: GestureEvent) => {
...
...
Please
register
or
login
to post a comment