Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
559aa51b
Commit
559aa51b
authored
Dec 25, 2020
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优量汇信息流测试
parent
81a3d44c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
YlhAdManager.kt
...src/main/java/com/mints/goodmoney/manager/YlhAdManager.kt
+2
-0
YlhPreLoadExpressManager.kt
...a/com/mints/goodmoney/manager/YlhPreLoadExpressManager.kt
+5
-6
FoodSubsidyActivity.kt
...a/com/mints/goodmoney/ui/activitys/FoodSubsidyActivity.kt
+1
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+3
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/YlhAdManager.kt
View file @
559aa51b
...
...
@@ -25,6 +25,8 @@ object YlhAdManager {
const
val
YLH_AD_VEDIO_MOREDIALOG_POSTID
=
"8081132842926080"
//签到、气泡、离线弹框
const
val
YLH_AD_VEDIO_GAME_POSTID
=
"4021234882122091"
//猎豹游戏
/*信息流*/
const
val
YLH_AD_NATIVEEXPRESS_AWARD
=
"2071245901560587"
//
/* 插屏 */
const
val
YLH_AD_INTERSTITIALAD_LIEBAO
=
"5031044115480084"
//猎豹
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/YlhPreLoadExpressManager.kt
View file @
559aa51b
package
com.mints.goodmoney.manager
import
android.view.View
import
android.widget.FrameLayout
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.utils.LogUtil
import
com.qq.e.ads.nativ.ADSize
import
com.qq.e.ads.nativ.NativeExpressAD
import
com.qq.e.ads.nativ.NativeExpressADView
...
...
@@ -24,7 +24,7 @@ object YlhPreLoadExpressManager {
try
{
ylhFrameLayout
=
FrameLayout
(
context
)
nativeExpressAD
=
NativeExpressAD
(
MintsApplication
.
getContext
(),
ADSize
(
320
,
ADSize
.
AUTO_HEIGHT
),
YlhAdManager
.
YLH_AD_
SPLASH_POSTI
D
,
object
:
NativeExpressAD
.
NativeExpressADListener
{
nativeExpressAD
=
NativeExpressAD
(
MintsApplication
.
getContext
(),
ADSize
(
320
,
ADSize
.
AUTO_HEIGHT
),
YlhAdManager
.
YLH_AD_
NATIVEEXPRESS_AWAR
D
,
object
:
NativeExpressAD
.
NativeExpressADListener
{
override
fun
onNoAD
(
p0
:
AdError
?)
{
}
...
...
@@ -47,9 +47,9 @@ object YlhPreLoadExpressManager {
// 释放前一个展示的NativeExpressADView的资源
nativeExpressADView
?.
destroy
()
if
(
ylhFrameLayout
!!
.
visibility
!=
View
.
VISIBLE
)
{
ylhFrameLayout
!!
.
visibility
=
View
.
VISIBLE
}
nativeExpressADView
=
p0
?.
get
(
0
)
LogUtil
.
d
(
"AAAA"
,
"onADLoaded"
)
if
(
ylhFrameLayout
!!
.
childCount
>
0
)
{
ylhFrameLayout
!!
.
removeAllViews
()
...
...
@@ -75,7 +75,6 @@ object YlhPreLoadExpressManager {
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
ylhFrameLayout
=
null
}
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/FoodSubsidyActivity.kt
View file @
559aa51b
...
...
@@ -102,7 +102,7 @@ class FoodSubsidyActivity : BaseActivity(), View.OnClickListener, FoodSubsidyVie
try
{
// ttNativeExpressManager.initTTAd(false)
// ttNativeExpressManager.getNativeExpressInit(TtCsjAdManager.TT_AD_NATIVEEXPRESS_EAT, flWalkAd, 320f, 0f)
YlhPreLoadExpressManager
.
loadYlhFrameLayout
()
//
YlhPreLoadExpressManager.loadYlhFrameLayout()
flWalkAd
.
addView
(
YlhPreLoadExpressManager
.
getYlhFrameLayout
())
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
559aa51b
...
...
@@ -22,6 +22,7 @@ import com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.BxmManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.manager.YlhPreLoadExpressManager
import
com.mints.goodmoney.manager.YwhzManager
import
com.mints.goodmoney.mvp.model.*
import
com.mints.goodmoney.mvp.presenters.MyPresenter
...
...
@@ -145,6 +146,8 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
override
fun
onResume
()
{
super
.
onResume
()
YlhPreLoadExpressManager
.
loadYlhFrameLayout
()
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_MY
)
{
if
(!
TextUtils
.
isEmpty
(
userManager
.
userID
))
{
myPresenter
.
getAutoUserHallBaseMsg
()
...
...
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