Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
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_fiveworld
Commits
b62ff519
Commit
b62ff519
authored
Oct 20, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新通知栏广告为新插屏半屏
parent
d333c73c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
421 additions
and
8 deletions
+421
-8
Notice_NewOutSceneFull.java
...a/com/mints/fiveworld/ad/half/Notice_NewOutSceneFull.java
+414
-0
WifiAdManager.kt
...rc/main/java/com/mints/fiveworld/ad/wifi/WifiAdManager.kt
+6
-7
CycleProgress.java
...in/java/com/mints/fiveworld/ui/widgets/CycleProgress.java
+1
-1
No files found.
app/src/main/java/com/mints/fiveworld/ad/half/Notice_NewOutSceneFull.java
0 → 100644
View file @
b62ff519
This diff is collapsed.
Click to expand it.
app/src/main/java/com/mints/fiveworld/ad/wifi/WifiAdManager.kt
View file @
b62ff519
...
...
@@ -5,10 +5,9 @@ import android.os.Bundle
import
com.mints.fiveworld.ad.full.OutSceneFull
import
com.mints.fiveworld.ad.full.InSceneFull
import
com.mints.fiveworld.ad.full.Notice_OutSceneFull
import
com.mints.fiveworld.ad.inscreen.InSceneInterstitial
import
com.mints.fiveworld.ad.half.NewInSceneFull
import
com.mints.fiveworld.ad.half.NewOutSceneFull
import
com.mints.fiveworld.ad.
inscreen.Notice_OutSceneInterstitia
l
import
com.mints.fiveworld.ad.
half.Notice_NewOutSceneFul
l
import
com.mints.fiveworld.common.Constant
import
com.mints.fiveworld.common.random.HitChanceKeeper
import
com.mints.fiveworld.manager.ad.CsjGroMoreManager
...
...
@@ -110,7 +109,7 @@ class WifiAdManager private constructor() {
fun
getInCurrentAdStatus
():
Boolean
{
when
(
inCurrentAdType
)
{
Constant
.
GROMORE_INSERTSCREEN_AD
->
{
return
InSceneInterstitia
l
.
getInstance
().
loadStatus
==
2
return
NewInSceneFul
l
.
getInstance
().
loadStatus
==
2
}
Constant
.
GROMORE_FULL_AD
->
{
return
InSceneFull
.
getInstance
().
loadStatus
==
2
...
...
@@ -198,7 +197,7 @@ class WifiAdManager private constructor() {
fun
getOutCurrentAdStatus
():
Boolean
{
when
(
outCurrentAdType
)
{
Constant
.
GROMORE_INSERTSCREEN_AD
->
{
return
Notice_
OutSceneInterstitia
l
.
getInstance
().
loadStatus
==
2
return
Notice_
NewOutSceneFul
l
.
getInstance
().
loadStatus
==
2
}
Constant
.
GROMORE_FULL_AD
->
{
return
Notice_OutSceneFull
.
getInstance
().
loadStatus
==
2
...
...
@@ -266,7 +265,7 @@ class WifiAdManager private constructor() {
when
(
noticeOutCurrentAdType
)
{
Constant
.
GROMORE_INSERTSCREEN_AD
->
{
Notice_
OutSceneInterstitial
.
getInstance
().
preloadInsertScreen
Ad
(
activity
,
carrier
)
Notice_
NewOutSceneFull
.
getInstance
().
preloadFull
Ad
(
activity
,
carrier
)
}
Constant
.
GROMORE_FULL_AD
->
{
Notice_OutSceneFull
.
getInstance
().
preloadFullAd
(
activity
,
carrier
)
...
...
@@ -285,8 +284,8 @@ class WifiAdManager private constructor() {
)
{
when
(
noticeOutCurrentAdType
)
{
Constant
.
GROMORE_INSERTSCREEN_AD
->
{
Notice_
OutSceneInterstitia
l
.
getInstance
()
.
show
Interaction
Ad
(
_activity
,
wifiAdStatusListener
,
carrier
)
Notice_
NewOutSceneFul
l
.
getInstance
()
.
show
Full
Ad
(
_activity
,
wifiAdStatusListener
,
carrier
)
}
Constant
.
GROMORE_FULL_AD
->
{
Notice_OutSceneFull
.
getInstance
()
...
...
app/src/main/java/com/mints/fiveworld/ui/widgets/CycleProgress.java
View file @
b62ff519
...
...
@@ -104,7 +104,7 @@ public class CycleProgress extends View {
pathMeasure
.
getSegment
(
0
,
pathMeasure
.
getLength
()
*
mAnimatorValue
,
dstPath
,
true
);
//渐变
Shader
mShader
=
new
LinearGradient
(
mStrokeWidth
/
2
,
mStrokeWidth
/
2
,
mProgressWidth
,
mHeight
-
mStrokeWidth
/
2
,
Color
.
parseColor
(
"#
DEAEC5"
),
Color
.
parseColor
(
"#FB918A
"
),
Shader
.
TileMode
.
REPEAT
);
Color
.
parseColor
(
"#
38A8F5"
),
Color
.
parseColor
(
"#468df8
"
),
Shader
.
TileMode
.
REPEAT
);
//遮罩
mProgressPaint
.
setXfermode
(
new
PorterDuffXfermode
(
PorterDuff
.
Mode
.
SRC_IN
));
mProgressPaint
.
setShader
(
mShader
);
...
...
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