Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
1502ff1e
Commit
1502ff1e
authored
May 18, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:倾诉底部播放布局调整
parent
7dcfd45a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
ConfideHomeEventImpl.kt
m-confide/src/main/java/com/ydl/confide/home/event/ConfideHomeEventImpl.kt
+2
-1
IConfideHomeEvent.kt
m-confide/src/main/java/com/ydl/confide/home/event/IConfideHomeEvent.kt
+1
-1
ConfideHomeRecommendView.kt
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendView.kt
+1
-1
play_float_background.xml
ydl-media/src/main/res/drawable/play_float_background.xml
+2
-1
item_playing_float_btn.xml
ydl-media/src/main/res/layout/item_playing_float_btn.xml
+4
-2
No files found.
m-confide/src/main/java/com/ydl/confide/home/event/ConfideHomeEventImpl.kt
View file @
1502ff1e
...
...
@@ -218,10 +218,11 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo
initConfidePlayerListener
()
}
override
fun
playVoice
(
type
:
Int
?,
index
:
Int
?,
recommendId
:
Int
,
playUrl
:
String
?,
name
:
String
?)
{
override
fun
playVoice
(
type
:
Int
?,
index
:
Int
?,
recommendId
:
Int
,
playUrl
:
String
?,
name
:
String
?
,
confideIcon
:
String
?
)
{
val
mu
=
Music
()
mu
.
title
=
name
mu
.
path
=
playUrl
mu
.
coverPath
=
confideIcon
AudioPlayer
.
get
().
singlePlay
(
mu
)
if
(
PlayerFloatHelper
.
isShow
(
mContext
!!
))
{
if
(
AudioPlayer
.
get
().
playMode
.
value
()
==
1
)
{
...
...
m-confide/src/main/java/com/ydl/confide/home/event/IConfideHomeEvent.kt
View file @
1502ff1e
...
...
@@ -99,7 +99,7 @@ interface IConfideHomeEvent {
* @param playUrl 播放地址
* @param name 咨询师姓名
*/
fun
playVoice
(
type
:
Int
?,
index
:
Int
?,
recommendId
:
Int
,
playUrl
:
String
?,
name
:
String
?)
fun
playVoice
(
type
:
Int
?,
index
:
Int
?,
recommendId
:
Int
,
playUrl
:
String
?,
name
:
String
?
,
confideIcon
:
String
?
)
/**
* 重播
...
...
m-confide/src/main/java/com/ydl/confide/home/widget/ConfideHomeRecommendView.kt
View file @
1502ff1e
...
...
@@ -165,7 +165,7 @@ class ConfideHomeRecommendView(var view: IConfideHomeContract.View, context: Con
if
(
bodyBean
.
confideIsPlay
!!
)
{
confideHomeEvent
.
pauseVoice
()
}
else
{
confideHomeEvent
.
playVoice
(
IConfideHomeConfig
.
TYPE_RECOMMEND
,
position
,
recommendId
,
bodyBean
.
confideVoice
,
bodyBean
.
confidedName
)
confideHomeEvent
.
playVoice
(
IConfideHomeConfig
.
TYPE_RECOMMEND
,
position
,
recommendId
,
bodyBean
.
confideVoice
,
bodyBean
.
confidedName
,
bodyBean
.
confidedIcon
)
}
}
}
...
...
ydl-media/src/main/res/drawable/play_float_background.xml
View file @
1502ff1e
...
...
@@ -3,6 +3,6 @@
<corners
android:radius=
"10dp"
/>
<solid
android:color=
"#
99
000000"
/>
<solid
android:color=
"#
60
000000"
/>
</shape>
\ No newline at end of file
ydl-media/src/main/res/layout/item_playing_float_btn.xml
View file @
1502ff1e
...
...
@@ -20,13 +20,14 @@
android:layout_height=
"20dp"
android:layout_gravity=
"center"
android:layout_marginLeft=
"12.5dp"
android:layout_marginRight=
"@dimen/platform_dp_25"
android:padding=
"2.5dp"
android:src=
"@drawable/ico_play_float_pause"
android:visibility=
"visible"
/>
<ImageView
android:id=
"@+id/play_head"
android:layout_width=
"
6
6dp"
android:layout_width=
"
3
6dp"
android:layout_height=
"36dp"
android:layout_marginLeft=
"12.5dp"
android:src=
"@drawable/ico_play_float_pic"
/>
...
...
@@ -35,7 +36,8 @@
android:id=
"@+id/rl_info"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"6dp"
android:layout_marginLeft=
"@dimen/platform_dp_18"
android:layout_marginRight=
"@dimen/platform_dp_18"
android:layout_weight=
"1"
>
<TextView
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment