Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
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
android
android_vedio
Commits
6f7538c5
Commit
6f7538c5
authored
Jul 14, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新播放按钮大小
parent
61841ef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
JzvdStdTikTok.kt
...rc/main/java/com/mints/wisdomclean/video/JzvdStdTikTok.kt
+15
-9
No files found.
video/app/src/main/java/com/mints/wisdomclean/video/JzvdStdTikTok.kt
View file @
6f7538c5
package
com.mints.wisdomclean.video
import
android.content.Context
import
android.graphics.Color
import
android.util.AttributeSet
import
android.util.Log
import
android.view.Gravity
import
android.view.View
import
android.widget.ImageView
import
android.widget.LinearLayout
import
android.widget.RelativeLayout
import
android.widget.Toast
import
cn.jzvd.Jzvd
import
cn.jzvd.JzvdStd
...
...
@@ -41,18 +43,22 @@ class JzvdStdTikTok : JzvdStd {
bottomProgressBar
.
visibility
=
View
.
GONE
//最底部的进度
val
layoutParams
2
=
progressBar
.
layoutParams
as
LinearLayout
.
LayoutParams
layoutParams
2
.
gravity
=
Gravity
.
BOTTOM
layoutParams
2
.
height
=
UIUtils
.
dip2px
(
context
,
5f
)
val
layoutParams
=
progressBar
.
layoutParams
as
LinearLayout
.
LayoutParams
layoutParams
.
gravity
=
Gravity
.
BOTTOM
layoutParams
.
height
=
UIUtils
.
dip2px
(
context
,
5f
)
progressBar
.
thumb
=
context
?.
getDrawable
(
R
.
drawable
.
jz_bottom_seek_poster
)
progressBar
.
layoutParams
=
layoutParams
2
progressBar
.
layoutParams
=
layoutParams
progressBar
.
setPadding
(
0
,
0
,
0
,
0
)
// val startLayout = findViewById<LinearLayout>(cn.jzvd.R.id.start_layout)
// startButton.scaleX = 1.5f
// startButton.scaleY = 1.5f
// startLayout.scaleX = 1.5f
// startLayout.scaleY = 1.5f
val
startLayout
=
findViewById
<
LinearLayout
>(
cn
.
jzvd
.
R
.
id
.
start_layout
)
val
layoutParams2
=
startLayout
.
layoutParams
as
RelativeLayout
.
LayoutParams
layoutParams2
.
width
=
UIUtils
.
dip2px
(
context
,
100f
)
layoutParams2
.
height
=
UIUtils
.
dip2px
(
context
,
100f
)
startLayout
.
layoutParams
=
layoutParams2
startLayout
.
gravity
=
Gravity
.
CENTER
val
myStart
=
findViewById
<
ImageView
>(
cn
.
jzvd
.
R
.
id
.
start
)
myStart
.
scaleX
=
1.5f
myStart
.
scaleY
=
1.5f
}
override
fun
setUp
(
...
...
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