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
e53c5138
Commit
e53c5138
authored
Aug 10, 2022
by
王佳洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,UI修改
2,音频在壳中初始化
parent
cc15c960
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
31 deletions
+25
-31
ComponentTestApp.java
app/src/main/java/com/ydl/component/base/ComponentTestApp.java
+7
-0
CourseListDialog.kt
m-course/src/main/java/com/yidianling/course/widget/CourseListDialog.kt
+1
-1
course_audition.png
m-course/src/main/res/drawable-xhdpi/course_audition.png
+0
-0
bg_stroke_eb892c.xml
m-course/src/main/res/drawable/bg_stroke_eb892c.xml
+0
-8
activity_audio_play.xml
m-course/src/main/res/layout/activity_audio_play.xml
+1
-0
audio_play_view.xml
m-course/src/main/res/layout/audio_play_view.xml
+4
-4
dialog_course_list.xml
m-course/src/main/res/layout/dialog_course_list.xml
+1
-1
item_course_playlist.xml
m-course/src/main/res/layout/item_course_playlist.xml
+11
-17
No files found.
app/src/main/java/com/ydl/component/base/ComponentTestApp.java
View file @
e53c5138
...
...
@@ -16,6 +16,9 @@ import com.umeng.socialize.PlatformConfig;
import
com.umeng.socialize.UMShareAPI
;
import
com.ydl.component.route.PlatformTempCommonRouteImpl
;
import
com.ydl.confide.BuildConfig
;
import
com.ydl.media.audio.AudioPlayer
;
import
com.ydl.media.audio.manager.MediaSessionManager
;
import
com.ydl.media.audio.manager.NotifyManager
;
import
com.ydl.ydl_image.manager.YDLImageCacheManager
;
import
com.ydl.ydlcommon.base.BaseApp
;
import
com.ydl.ydlcommon.router.YdlCommonRouterManager
;
...
...
@@ -26,6 +29,7 @@ import com.yidianling.common.tools.ToastUtil;
import
com.yidianling.consultant.preview.TestImageLoader
;
import
com.yidianling.consultant.preview.ZoomMediaLoader
;
import
com.yidianling.course.lifeCallback.CoursePlayLifecycle
;
import
com.yidianling.course.widget.AudioPlayView
;
/**
...
...
@@ -46,6 +50,9 @@ public class ComponentTestApp extends BaseApp {
public
void
onCreate
()
{
super
.
onCreate
();
mComponentTestAppContext
=
this
;
AudioPlayer
.
Companion
.
get
().
init
(
this
);
NotifyManager
.
Companion
.
get
().
init
(
this
);
MediaSessionManager
.
Companion
.
get
().
init
(
this
);
LogUtil
.
debug
=
BuildConfig
.
DEBUG
;
com
.
ydl
.
ydlcommon
.
utils
.
LogUtil
.
debug
=
BuildConfig
.
DEBUG
;
...
...
m-course/src/main/java/com/yidianling/course/widget/CourseListDialog.kt
View file @
e53c5138
...
...
@@ -83,7 +83,7 @@ class CourseListDialog : BaseDialogFragment() {
}
}
}
t
v_audition
.
visibility
=
if
(
bean
.
isDemo
)
View
.
VISIBLE
else
View
.
GONE
// 试听标签
i
v_audition
.
visibility
=
if
(
bean
.
isDemo
)
View
.
VISIBLE
else
View
.
GONE
// 试听标签
tv_title
.
text
=
bean
.
title
setOnClickListener
{
...
...
m-course/src/main/res/drawable-xhdpi/course_audition.png
0 → 100644
View file @
e53c5138
2.47 KB
m-course/src/main/res/drawable/bg_stroke_eb892c.xml
deleted
100644 → 0
View file @
cc15c960
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:color=
"@color/color_EB892C"
android:width=
"1dp"
/>
<corners
android:radius=
"4dp"
/>
</shape>
\ No newline at end of file
m-course/src/main/res/layout/activity_audio_play.xml
View file @
e53c5138
...
...
@@ -57,6 +57,7 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"32dp"
android:textStyle=
"bold"
android:layout_marginTop=
"16dp"
android:layout_marginEnd=
"32dp"
android:ellipsize=
"end"
...
...
m-course/src/main/res/layout/audio_play_view.xml
View file @
e53c5138
...
...
@@ -8,8 +8,8 @@
<ImageView
android:id=
"@+id/iv_rewind"
android:layout_width=
"
25
dp"
android:layout_height=
"
25
dp"
android:layout_width=
"
30
dp"
android:layout_height=
"
30
dp"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
android:src=
"@drawable/course_rewind_15"
/>
...
...
@@ -18,8 +18,8 @@
android:id=
"@+id/iv_fast_forward"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
android:layout_width=
"
25
dp"
android:layout_height=
"
25
dp"
android:layout_width=
"
30
dp"
android:layout_height=
"
30
dp"
android:src=
"@drawable/course_fast_forward_15"
/>
<SeekBar
...
...
m-course/src/main/res/layout/dialog_course_list.xml
View file @
e53c5138
...
...
@@ -9,7 +9,7 @@
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"
16
dp"
android:layout_marginStart=
"
20
dp"
android:layout_marginTop=
"16dp"
android:text=
"播放列表"
android:textColor=
"@color/color_1C1F28"
...
...
m-course/src/main/res/layout/item_course_playlist.xml
View file @
e53c5138
...
...
@@ -9,34 +9,28 @@
android:id=
"@+id/tv_title"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"
3
0dp"
android:layout_marginStart=
"
2
0dp"
android:ellipsize=
"end"
android:maxLines=
"1"
android:layout_marginTop=
"20dp"
android:paddingTop=
"1dp"
android:textColor=
"@color/color_242424"
android:textSize=
"14sp"
android:layout_marginEnd=
"
12
dp"
android:layout_marginEnd=
"
8
dp"
app:layout_goneMarginEnd=
"80dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/
t
v_audition"
app:layout_constraintEnd_toStartOf=
"@id/
i
v_audition"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"孩子是厌学情绪,还是厌学症?孩子是厌学情绪,还是厌学症?"
/>
<TextView
android:id=
"@+id/tv_audition"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bg_stroke_eb892c"
android:paddingStart=
"8dp"
android:paddingTop=
"1dp"
android:paddingEnd=
"8dp"
android:paddingBottom=
"1dp"
<ImageView
android:id=
"@+id/iv_audition"
android:layout_width=
"32dp"
android:layout_height=
"16dp"
android:src=
"@drawable/course_audition"
android:visibility=
"gone"
android:text=
"试听"
android:textColor=
"@color/color_EB892C"
tools:visibility=
"visible"
android:layout_marginEnd=
"69dp"
android:textSize=
"12sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
...
...
@@ -57,8 +51,8 @@
<ImageView
android:id=
"@+id/iv_play"
android:layout_width=
"2
4
dp"
android:layout_height=
"2
4
dp"
android:layout_width=
"2
8
dp"
android:layout_height=
"2
8
dp"
android:layout_marginEnd=
"18dp"
tools:src=
"@drawable/course_play_orange"
app:layout_constraintEnd_toEndOf=
"parent"
...
...
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