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
a51ef1ed
Commit
a51ef1ed
authored
May 20, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:通话界面UI
parent
4f63d2ad
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
42 additions
and
25 deletions
+42
-25
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+29
-25
audiohome_background.webp
m-audioim/src/main/res/drawable-xhdpi/audiohome_background.webp
+0
-0
audiohome_muteoff.webp
m-audioim/src/main/res/drawable-xhdpi/audiohome_muteoff.webp
+0
-0
audiohome_muteon.webp
m-audioim/src/main/res/drawable-xhdpi/audiohome_muteon.webp
+0
-0
audioim_img_hands_free.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free.png
+0
-0
audioim_img_hands_free.webp
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free.webp
+0
-0
audioim_img_hands_free_unuse.png
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free_unuse.png
+0
-0
audioim_img_hands_free_unuse.webp
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free_unuse.webp
+0
-0
audioim_kefu.webp
m-audioim/src/main/res/drawable-xhdpi/audioim_kefu.webp
+0
-0
iv_change_route.webp
m-audioim/src/main/res/drawable-xhdpi/iv_change_route.webp
+0
-0
audio_border_white_kefu.xml
m-audioim/src/main/res/drawable/audio_border_white_kefu.xml
+13
-0
audioim_activity_audio_home.xml
m-audioim/src/main/res/layout/audioim_activity_audio_home.xml
+0
-0
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
a51ef1ed
...
...
@@ -21,6 +21,7 @@ import android.view.View
import
android.view.animation.AccelerateInterpolator
import
androidx.core.content.ContextCompat
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.alibaba.android.arouter.launcher.ARouter
import
com.google.gson.Gson
import
com.hjq.permissions.OnPermissionCallback
import
com.hjq.permissions.XXPermissions
...
...
@@ -41,6 +42,7 @@ import com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.webview.RefreshWebEvent
import
com.ydl.ydl_av.chat.bean.AudioMessageBean
import
com.ydl.ydl_av.voice.impl.YDLVoiceApiImpl
import
com.ydl.ydl_av.voice.listener.IYDLVoiceEventHandler
import
com.ydl.ydl_av.voice.manager.YDLVoiceManager
import
com.ydl.ydl_image.config.SimpleImageOpConfiger
...
...
@@ -56,6 +58,7 @@ import com.ydl.ydlcommon.utils.log.AliYunLogConfig
import
com.ydl.ydlcommon.utils.log.AliYunRichLogsHelper
import
com.ydl.ydlcommon.utils.log.LogHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.yidianling.im.api.service.IImService
import
com.yidianling.user.api.service.IUserService
import
de.greenrobot.event.EventBus
import
io.agora.rtc.Constants
...
...
@@ -546,7 +549,7 @@ class AudioHomeActivity :
writeAgoraLog
(
"用户拨打电话界面开启"
)
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
AGORA
,
"用户拨打电话界面开启"
)
tv_change_r
oute
.
isEnabled
=
false
ll_changeR
oute
.
isEnabled
=
false
//水波纹view初始化
wave_view
.
setDuration
(
6000
)
wave_view
.
setStyle
(
Paint
.
Style
.
STROKE
)
...
...
@@ -573,14 +576,33 @@ class AudioHomeActivity :
}
if
(!
isShowAXB
)
{
tv_change_r
oute
.
visibility
=
View
.
GONE
ll_changeR
oute
.
visibility
=
View
.
GONE
tv_change_time_counter
.
visibility
=
View
.
GONE
}
}
private
fun
setClickEvent
()
{
//跳转客服小壹
jump_kefu
.
setOnClickListener
{
val
imService
=
ARouter
.
getInstance
().
navigation
(
IImService
::
class
.
java
)
imService
?.
startKefuChat
(
this
,
""
,
0
,
0
)
}
//静音开启
rl_mute_on_off
.
setOnClickListener
{
if
(
iv_mute_on_off
.
isSelected
)
{
iv_mute_on_off
.
isSelected
=
false
iv_mute_on_off
.
setImageResource
(
R
.
drawable
.
audiohome_muteoff
)
audio_mute_text
.
text
=
"麦克风已关"
voiceManage
?.
getVoiceApi
()
?.
enableLocalAudio
(
false
)
}
else
{
iv_mute_on_off
.
isSelected
=
true
iv_mute_on_off
.
setImageResource
(
R
.
drawable
.
audiohome_muteon
)
audio_mute_text
.
text
=
"麦克风已开"
voiceManage
?.
getVoiceApi
()
?.
enableLocalAudio
(
true
)
}
}
//切换线路
tv_change_r
oute
.
setOnClickListener
{
ll_changeR
oute
.
setOnClickListener
{
showChooseDialog
(
1
)
}
//挂断
...
...
@@ -997,13 +1019,10 @@ class AudioHomeActivity :
// tv_change_doctor.visibility = View.VISIBLE
// }
if
(!
isShowAXB
)
{
tv_change_r
oute
.
visibility
=
View
.
GONE
ll_changeR
oute
.
visibility
=
View
.
GONE
}
else
{
//切换线路按钮可见
tv_change_route
.
isEnabled
=
true
tv_change_route
.
text
=
"切换至传统电话"
tv_change_route
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
platform_white
))
ll_changeRoute
.
isEnabled
=
true
}
}
...
...
@@ -1102,23 +1121,8 @@ class AudioHomeActivity :
playNoticeMusic
(
1
)
}
if
(
localRemainTime
!!
<=
60
)
{
if
(
tv_change_route
.
isEnabled
)
{
tv_change_route
.
isEnabled
=
false
tv_change_route
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
audioim_color_50ffffff
)
)
tv_change_route
.
setCompoundDrawablesWithIntrinsicBounds
(
null
,
null
,
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
audioim_img_choose_arrow_unuse
),
null
)
if
(
ll_changeRoute
.
isEnabled
)
{
ll_changeRoute
.
isEnabled
=
false
}
}
tv_remain_time
.
text
=
DateUtils
.
formatTime
(
localRemainTime
.
toString
())
...
...
m-audioim/src/main/res/drawable-xhdpi/audiohome_background.webp
0 → 100644
View file @
a51ef1ed
File added
m-audioim/src/main/res/drawable-xhdpi/audiohome_muteoff.webp
0 → 100644
View file @
a51ef1ed
File added
m-audioim/src/main/res/drawable-xhdpi/audiohome_muteon.webp
0 → 100644
View file @
a51ef1ed
File added
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free.png
deleted
100644 → 0
View file @
4f63d2ad
6.62 KB
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free.webp
0 → 100644
View file @
a51ef1ed
File added
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free_unuse.png
deleted
100644 → 0
View file @
4f63d2ad
7.01 KB
m-audioim/src/main/res/drawable-xhdpi/audioim_img_hands_free_unuse.webp
0 → 100644
View file @
a51ef1ed
File added
m-audioim/src/main/res/drawable-xhdpi/audioim_kefu.webp
0 → 100644
View file @
a51ef1ed
File added
m-audioim/src/main/res/drawable-xhdpi/iv_change_route.webp
0 → 100644
View file @
a51ef1ed
File added
m-audioim/src/main/res/drawable/audio_border_white_kefu.xml
0 → 100644
View file @
a51ef1ed
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/platform_dp_14"
/>
<solid
android:color=
"@color/transparent"
/>
<stroke
android:color=
"#ffffff"
android:width=
"0.5dp"
>
</stroke>
</shape>
\ No newline at end of file
m-audioim/src/main/res/layout/audioim_activity_audio_home.xml
View file @
a51ef1ed
This diff is collapsed.
Click to expand it.
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