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
19f73ce3
Commit
19f73ce3
authored
Aug 05, 2022
by
王佳洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频弹窗UI修改
parent
4e7da677
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
72 deletions
+39
-72
CourseListDialog.kt
m-course/src/main/java/com/yidianling/course/widget/CourseListDialog.kt
+1
-3
course_play_lock.png
m-course/src/main/res/drawable-xhdpi/course_play_lock.png
+0
-0
ic_course_play_lock.xml
m-course/src/main/res/drawable/ic_course_play_lock.xml
+0
-0
item_course_playlist.xml
m-course/src/main/res/layout/item_course_playlist.xml
+37
-69
colors.xml
ydl-platform/src/main/res/values/colors.xml
+1
-0
No files found.
m-course/src/main/java/com/yidianling/course/widget/CourseListDialog.kt
View file @
19f73ce3
...
...
@@ -68,9 +68,7 @@ class CourseListDialog : BaseDialogFragment() {
if
(
mCurrentPosition
==
position
)
{
voice_play
.
visible
()
voice_play
.
start
()
iv_play
.
invisible
()
// Glide.with(context).asGif()
// .load(R.drawable.course_music).into(gifView)
iv_play
.
gone
()
}
else
{
voice_play
.
gone
()
voice_play
.
stop
()
...
...
m-course/src/main/res/drawable-xhdpi/course_play_lock.png
0 → 100644
View file @
19f73ce3
1.85 KB
m-course/src/main/res/drawable/course_play_lock.xml
→
m-course/src/main/res/drawable/
ic_
course_play_lock.xml
View file @
19f73ce3
File moved
m-course/src/main/res/layout/item_course_playlist.xml
View file @
19f73ce3
...
...
@@ -3,46 +3,53 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingStart=
"16dp"
android:paddingTop=
"16dp"
android:paddingEnd=
"11dp"
>
<TextView
android:id=
"@+id/tv_num"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/color_1C1F28"
android:textSize=
"16sp"
android:textStyle=
"bold"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"01"
/>
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"
11
dp"
android:layout_marginStart=
"
30
dp"
android:ellipsize=
"end"
android:maxLines=
"1"
android:layout_marginTop=
"20dp"
android:paddingTop=
"1dp"
android:textColor=
"@color/color_
1C1F28
"
android:textColor=
"@color/color_
242424
"
android:textSize=
"14sp"
app:layout_constraintEnd_toStartOf=
"@id/iv_play"
app:layout_constraintStart_toEndOf=
"@id/tv_num"
android:layout_marginEnd=
"12dp"
app:layout_goneMarginEnd=
"80dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/tv_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"
android:visibility=
"gone"
android:text=
"试听"
android:textColor=
"@color/color_EB892C"
android:layout_marginEnd=
"69dp"
android:textSize=
"12sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
<com.yidianling.common.view.ui.VoicePlayingIcon
android:id=
"@+id/voice_play"
android:layout_width=
"15dp"
android:layout_height=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"2dp"
android:layout_marginEnd=
"22dp"
android:visibility=
"gone"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:pointer_color=
"@color/color_1DA1F2"
app:pointer_num=
"3"
app:pointer_width=
"3"
...
...
@@ -52,60 +59,20 @@
android:id=
"@+id/iv_play"
android:layout_width=
"24dp"
android:layout_height=
"24dp"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"2dp"
android:layout_marginEnd=
"18dp"
tools:src=
"@drawable/course_play_orange"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/tv_audition"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
android:background=
"@drawable/bg_stroke_eb892c"
android:paddingStart=
"8dp"
android:paddingTop=
"1dp"
android:paddingEnd=
"8dp"
android:visibility=
"gone"
tools:visibility=
"visible"
android:paddingBottom=
"1dp"
android:text=
"试听"
android:textColor=
"@color/color_EB892C"
android:textSize=
"12sp"
app:layout_constraintStart_toStartOf=
"@id/tv_title"
app:layout_constraintTop_toBottomOf=
"@id/tv_title"
/>
<!-- <ImageView-->
<!-- android:id="@+id/iv_surface"-->
<!-- android:layout_width="10dp"-->
<!-- android:layout_height="10dp"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:src="@drawable/course_surface"-->
<!-- app:layout_constraintBottom_toBottomOf="@id/tv_duration"-->
<!-- app:layout_constraintStart_toEndOf="@id/tv_audition"-->
<!-- app:layout_constraintTop_toTopOf="@id/tv_duration"-->
<!-- app:layout_goneMarginStart="0dp" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_duration"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="4dp"-->
<!-- android:textColor="@color/color_9D9EA7"-->
<!-- android:textSize="12sp"-->
<!-- android:layout_marginTop="8dp"-->
<!-- app:layout_constraintStart_toEndOf="@id/iv_surface"-->
<!-- app:layout_constraintTop_toBottomOf="@id/tv_title"-->
<!-- tools:text="08:32" />-->
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginTop=
"28dp"
android:layout_marginEnd=
"5dp"
android:layout_height=
"0.5dp"
android:layout_marginTop=
"19.5dp"
android:layout_marginEnd=
"17dp"
android:layout_marginStart=
"17dp"
android:background=
"@color/color_EFEFF1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/
iv_play
"
/>
app:layout_constraintTop_toBottomOf=
"@id/
tv_title
"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
ydl-platform/src/main/res/values/colors.xml
View file @
19f73ce3
...
...
@@ -130,5 +130,6 @@
<color
name=
"color_9D9EA7"
>
#9D9EA7
</color>
<color
name=
"color_EFEFF1"
>
#EFEFF1
</color>
<color
name=
"color_FAFAFF"
>
#FAFAFF
</color>
<color
name=
"color_242424"
>
#242424
</color>
</resources>
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