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-05-20 10:48:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c019489fa28f5c04f4ea5b86f9365e65e6188dee
c019489f
1 parent
f8c41437
OperRowListView.ets 音频按钮替换成gif
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
33 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
sight_harmony/features/wdComponent/src/main/resources/base/media/ic_voice_playing.gif
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
View file @
c019489
...
...
@@ -11,13 +11,10 @@ import {
postExecuteCollectRecordParams
} from 'wdBean';
import router from '@ohos.router';
import inputMethod from '@ohos.inputMethod';
import { MultiPictureDetailViewModel } from '../../viewmodel/MultiPictureDetailViewModel';
import { LikeComponent } from './LikeComponent';
import { CommentTabComponent, CommentIconComponent, } from '../comment/view/CommentTabComponent';
import { publishCommentModel } from '../comment/model/PublishCommentModel'
// import { AudioBarView } from '../MorningEveningPaper/AudioBarView'
// import { AudioDialog } from '../../dialog/AudioDialog'
import { HttpUrlUtils } from 'wdNetwork/Index';
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
import { PageRepository } from '../../repository/PageRepository';
...
...
@@ -26,7 +23,6 @@ import { WDShare } from 'wdShare/Index';
import { AudioSuspensionModel } from '../../viewmodel/AudioSuspensionModel'
import { EmitterEventId, EmitterUtils } from 'wdKit/Index'
import { PlayerConstants } from 'wdPlayer'
import { LottieView } from '../lottie/LottieView'
const TAG = 'OperRowListView';
...
...
@@ -294,36 +290,16 @@ export struct OperRowListView {
@Builder
builderListen() {
Column() {
if(this.currentStatus === PlayerConstants.STATUS_START) {
Column() {
LottieView({
name: this.name,
path: "lottie/audio_recommend_playing.json",
lottieWidth: 24,
lottieHeight: 24,
autoplay: true,
loop: true
})
}
.width(25)
.height(25)
.parallelGesture(
Image(this.currentStatus === PlayerConstants.STATUS_START ? $r("app.media.ic_voice_playing") : $r("app.media.icon_listen"))
.width(24)
.height(24)
.aspectRatio(1)
.interpolation(ImageInterpolation.High)
.gesture(
TapGesture()
.onAction((event: GestureEvent) => {
this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle)
}))
} else {
Image($r("app.media.icon_listen"))
.width(24)
.height(24)
.aspectRatio(1)
.interpolation(ImageInterpolation.High)
.gesture(
TapGesture()
.onAction((event: GestureEvent) => {
this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle)
}))
}
.onAction((event: GestureEvent) => {
this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle)
}))
}
.height(36)
.width(48)
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/ic_voice_playing.gif
0 → 100644
View file @
c019489
36.6 KB
Please
register
or
login
to post a comment