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
4726b08a
Commit
4726b08a
authored
Aug 07, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页信息流每9个展示一次
parent
882bdd8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
MainExpressManager.kt
...java/com/mints/helivideo/ad/express/MainExpressManager.kt
+1
-1
MovieFragment.kt
...ain/java/com/mints/helivideo/ui/fragment/MovieFragment.kt
+3
-3
No files found.
video/app/src/main/java/com/mints/helivideo/ad/express/MainExpressManager.kt
View file @
4726b08a
...
...
@@ -44,7 +44,7 @@ class MainExpressManager {
val
adNativeLoader
=
TTAdSdk
.
getAdManager
().
createAdNative
(
activity
)
val
adslot
=
AdSlot
.
Builder
()
.
setCodeId
(
BuildConfig
.
GROMORE_
MAIN_
EXPRESS_CODE
)
.
setCodeId
(
BuildConfig
.
GROMORE_EXPRESS_CODE
)
/**
* 注:
* 1:单位为px
...
...
video/app/src/main/java/com/mints/helivideo/ui/fragment/MovieFragment.kt
View file @
4726b08a
...
...
@@ -165,13 +165,13 @@ class MovieFragment : LazyLoadBaseFragment(), PicContentView, OnLoadMoreListener
}
private
fun
addAdView
(
adView
:
FrameLayout
)
{
// 默认每各
6
个加1个
var
insertIndex
=
2
// 默认每各
9
个加1个
var
insertIndex
=
3
val
allData
=
hotStyleAdapter
.
data
for
(
i
in
allData
.
size
-
1
downTo
0
)
{
if
(
allData
[
i
].
itemType
==
MULTI_ITEM_3
)
{
insertIndex
+=
3
insertIndex
+=
4
}
}
if
(
insertIndex
>=
allData
.
size
)
{
...
...
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