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
2f7993c4
Commit
2f7993c4
authored
Nov 01, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
cc0eca2c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
30 deletions
+30
-30
AppConfig.java
...rc/main/java/com/duben/supertheater/common/AppConfig.java
+1
-1
NewTxVideoActivity.kt
...ava/com/duben/supertheater/video/tx/NewTxVideoActivity.kt
+0
-1
TxVideoAdapter.kt
...com/duben/supertheater/video/tx/adapter/TxVideoAdapter.kt
+28
-28
item_block_view.xml
video/app/src/main/res/layout/item_block_view.xml
+1
-0
No files found.
video/app/src/main/java/com/duben/supertheater/common/AppConfig.java
View file @
2f7993c4
...
...
@@ -19,7 +19,7 @@ public class AppConfig {
public
static
int
awardRedpkg
=
0
;
public
static
int
awardYuanbao
=
0
;
public
static
int
csjAdRate
=
100
;
public
static
int
adShowToastRate
=
5
0
;
public
static
int
adShowToastRate
=
3
0
;
public
static
int
taskListId
=
-
1
;
public
static
double
signCash1
=
0.0
;
...
...
video/app/src/main/java/com/duben/supertheater/video/tx/NewTxVideoActivity.kt
View file @
2f7993c4
...
...
@@ -725,7 +725,6 @@ class NewTxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
R
.
id
.
tv_newcomer_time
->
{
newcomerDialog
?.
dismiss
()
super_short_video_view
.
resume
()
showRewardAnim
(
188800
,
0
)
}
}
}
...
...
video/app/src/main/java/com/duben/supertheater/video/tx/adapter/TxVideoAdapter.kt
View file @
2f7993c4
...
...
@@ -127,34 +127,34 @@ class TxVideoAdapter : BaseMultiItemQuickAdapter<VideoMultiItemEntity, BaseViewH
}
}
ExpressManager
.
instance
.
getAdView
(
object
:
ExpressAdCallback
{
override
fun
loadSuccess
(
adView
:
FrameLayout
?)
{
adView
?.
let
{
UIUtils
.
removeFromParent
(
it
)
val
fmAd
=
holder
.
getView
<
FrameLayout
>(
R
.
id
.
fl_ad
)
fmAd
.
removeAllViews
()
fmAd
.
addView
(
it
)
}
ExpressManager
.
instance
.
preLoadAd
()
}
override
fun
renderSuccess
(
adView
:
FrameLayout
?):
Boolean
{
adView
?.
let
{
UIUtils
.
removeFromParent
(
it
)
val
fmAd
=
holder
.
getView
<
FrameLayout
>(
R
.
id
.
fl_ad
)
fmAd
.
removeAllViews
()
fmAd
.
addView
(
it
)
}
ExpressManager
.
instance
.
preLoadAd
()
return
false
}
override
fun
loadFail
()
{
}
})
//
ExpressManager.instance.getAdView(
//
object : ExpressAdCallback {
//
override fun loadSuccess(adView: FrameLayout?) {
//
adView?.let {
//
UIUtils.removeFromParent(it)
//
val fmAd = holder.getView<FrameLayout>(R.id.fl_ad)
//
fmAd.removeAllViews()
//
fmAd.addView(it)
//
}
//
//
ExpressManager.instance.preLoadAd()
//
}
//
//
override fun renderSuccess(adView: FrameLayout?): Boolean {
//
adView?.let {
//
UIUtils.removeFromParent(it)
//
val fmAd = holder.getView<FrameLayout>(R.id.fl_ad)
//
fmAd.removeAllViews()
//
fmAd.addView(it)
//
}
//
//
ExpressManager.instance.preLoadAd()
//
return false
//
}
//
//
override fun loadFail() {
//
}
//
})
}
private
fun
initVideoHolder
(
holder
:
BaseViewHolder
,
item
:
IndexList
.
VedioEpisodeBean
?)
{
...
...
video/app/src/main/res/layout/item_block_view.xml
View file @
2f7993c4
...
...
@@ -12,6 +12,7 @@
android:scaleType=
"center"
/>
<com.duben.supertheater.ui.widgets.RoundRectLayout
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#99000000"
>
...
...
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