Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
LuckyFarm
Commits
8488af22
Commit
8488af22
authored
Nov 23, 2020
by
Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[李俊岐] 优化
parent
f8667c54
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
dialog_get_welfare_drop.xml
app/src/main/res/layout/dialog_get_welfare_drop.xml
+8
-8
AdUtils.kt
library/src/main/java/com/ym/library/utils/AdUtils.kt
+16
-10
No files found.
app/src/main/res/layout/dialog_get_welfare_drop.xml
View file @
8488af22
...
...
@@ -63,6 +63,8 @@
android:textSize=
"20sp"
/>
<LinearLayout
android:paddingLeft=
"10dp"
android:paddingRight=
"10dp"
android:id=
"@+id/id_ll_content"
android:layout_width=
"310dp"
android:layout_height=
"150dp"
...
...
@@ -74,13 +76,13 @@
<LinearLayout
android:id=
"@+id/layout_seed"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
android:visibility=
"
gon
e"
>
android:visibility=
"
visibl
e"
>
<ImageView
android:id=
"@+id/iv_seed_bg"
...
...
@@ -101,14 +103,13 @@
<LinearLayout
android:id=
"@+id/layout_coins"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginLeft=
"@dimen/dp_40"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
android:visibility=
"
gon
e"
>
android:visibility=
"
visibl
e"
>
<ImageView
android:layout_width=
"@dimen/dp_60"
...
...
@@ -128,14 +129,13 @@
<LinearLayout
android:id=
"@+id/layout_accelerator"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginLeft=
"@dimen/dp_40"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
android:visibility=
"
gon
e"
>
android:visibility=
"
visibl
e"
>
<ImageView
android:layout_width=
"@dimen/dp_60"
...
...
library/src/main/java/com/ym/library/utils/AdUtils.kt
View file @
8488af22
...
...
@@ -45,6 +45,9 @@ object AdUtils {
fun
showFeedAd
(
activity
:
Activity
,
actionName
:
String
,
view
:
FrameLayout
)
{
try
{
view
.
postDelayed
(
object
:
Runnable
{
override
fun
run
()
{
activity
?.
runOnUiThread
()
{
AdManager
.
showFeedAd
(
ADConfig
.
AD_IMG_FADE
,
actionName
,
...
...
@@ -55,6 +58,9 @@ object AdUtils {
activity
,
view
)
}
}
},
500
)
}
catch
(
e
:
Exception
)
{
}
}
...
...
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