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
61841ef1
Commit
61841ef1
authored
Jul 14, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
2e7a1f24
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
105 deletions
+7
-105
JzvdStdTikTok.kt
...rc/main/java/com/mints/wisdomclean/video/JzvdStdTikTok.kt
+5
-4
MyJzvdStd.kt
...pp/src/main/java/com/mints/wisdomclean/video/MyJzvdStd.kt
+0
-19
VideoActivity.kt
...rc/main/java/com/mints/wisdomclean/video/VideoActivity.kt
+2
-3
layout_my_video.xml
video/app/src/main/res/layout/layout_my_video.xml
+0
-79
No files found.
video/app/src/main/java/com/mints/wisdomclean/video/JzvdStdTikTok.kt
View file @
61841ef1
...
...
@@ -48,10 +48,11 @@ class JzvdStdTikTok : JzvdStd {
progressBar
.
layoutParams
=
layoutParams2
progressBar
.
setPadding
(
0
,
0
,
0
,
0
)
val
layoutParams3
=
startButton
.
layoutParams
as
LinearLayout
.
LayoutParams
layoutParams3
.
width
=
UIUtils
.
dip2px
(
context
,
100f
)
layoutParams3
.
height
=
UIUtils
.
dip2px
(
context
,
100f
)
startButton
.
layoutParams
=
layoutParams3
// 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
}
override
fun
setUp
(
...
...
video/app/src/main/java/com/mints/wisdomclean/video/MyJzvdStd.kt
deleted
100644 → 0
View file @
2e7a1f24
package
com.mints.wisdomclean.video
import
android.content.Context
import
android.util.AttributeSet
import
cn.jzvd.JzvdStd
import
com.mints.wisdomclean.R
class
MyJzvdStd
:
JzvdStd
{
constructor
(
context
:
Context
?)
:
super
(
context
)
constructor
(
context
:
Context
?,
attrs
:
AttributeSet
?)
:
super
(
context
,
attrs
)
override
fun
getLayoutId
()
=
R
.
layout
.
layout_my_video
}
\ No newline at end of file
video/app/src/main/java/com/mints/wisdomclean/video/VideoActivity.kt
View file @
61841ef1
...
...
@@ -370,15 +370,15 @@ class VideoActivity : BaseActivity(), View.OnClickListener, VideoView,
private
fun
showVipCountDialog
(
position
:
Int
)
{
if
(
isFinishing
)
return
autoPlayVideo
()
if
(
position
==
0
||
mVedioBean
!!
.
tipMaxIndex
==
0
||
mVedioBean
!!
.
tipMaxIndex
-
1
<
position
)
{
autoPlayVideo
()
return
}
VipCountDialog
(
this
,
mVedioBean
!!
)
.
setOnDialogDismiss
(
object
:
VipCountDialog
.
OnDialogDismiss
{
override
fun
onDialogDismiss
()
{
autoPlayVideo
()
}
})
.
show
()
...
...
@@ -386,7 +386,6 @@ class VideoActivity : BaseActivity(), View.OnClickListener, VideoView,
}
override
fun
finish
()
{
Jzvd
.
releaseAllVideos
()
super
.
finish
()
...
...
video/app/src/main/res/layout/layout_my_video.xml
deleted
100644 → 0
View file @
2e7a1f24
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@android:color/black"
>
<FrameLayout
android:id=
"@+id/surface_container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
</FrameLayout>
<ProgressBar
android:id=
"@+id/bottom_progress"
style=
"?android:attr/progressBarStyleHorizontal"
android:layout_width=
"match_parent"
android:layout_height=
"1.5dp"
android:layout_alignParentBottom=
"true"
android:max=
"100"
android:progressDrawable=
"@drawable/player_ag_bottom_progress"
/>
<ProgressBar
android:id=
"@+id/loading"
android:layout_width=
"@dimen/jz_start_button_w_h_normal"
android:layout_height=
"@dimen/jz_start_button_w_h_normal"
android:layout_centerHorizontal=
"true"
android:layout_centerVertical=
"true"
android:indeterminateDrawable=
"@drawable/jz_loading"
android:visibility=
"invisible"
/>
<LinearLayout
android:id=
"@+id/start_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerVertical=
"true"
android:layout_gravity=
"center_vertical"
>
<ImageView
android:id=
"@+id/start"
android:layout_width=
"100dp"
android:layout_height=
"100dp"
android:src=
"@drawable/jz_click_play_selector"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/retry_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerVertical=
"true"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
android:visibility=
"invisible"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/video_loading_failed"
android:textColor=
"@android:color/white"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/retry_btn"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15dp"
android:background=
"@drawable/jz_retry"
android:paddingLeft=
"9dp"
android:paddingTop=
"4dp"
android:paddingRight=
"9dp"
android:paddingBottom=
"4dp"
android:text=
"@string/click_to_restart"
android:textColor=
"@android:color/white"
android:textSize=
"14sp"
/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
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