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
8aefa040
Commit
8aefa040
authored
Nov 04, 2020
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
c89d46de
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
15 deletions
+27
-15
BaseApplication.kt
app/src/main/java/com/ym/game/application/BaseApplication.kt
+1
-1
MainDialog.kt
app/src/main/java/com/ym/game/view/MainDialog.kt
+1
-1
SpeedWaterPopupWindow.kt
app/src/main/java/com/ym/game/view/SpeedWaterPopupWindow.kt
+1
-1
dialog_layout_record.xml
app/src/main/res/layout/dialog_layout_record.xml
+18
-8
item_layout_record.xml
app/src/main/res/layout/item_layout_record.xml
+1
-1
icon_get_diamand.png
library/src/main/res/drawable-xhdpi/icon_get_diamand.png
+0
-0
dialog_get_diamand.xml
library/src/main/res/layout/dialog_get_diamand.xml
+2
-2
SettingActivity.kt
...n/java/com/ym/userinfo/module/activity/SettingActivity.kt
+3
-1
No files found.
app/src/main/java/com/ym/game/application/BaseApplication.kt
View file @
8aefa040
...
@@ -31,7 +31,7 @@ class BaseApplication : MultiDexApplication() {
...
@@ -31,7 +31,7 @@ class BaseApplication : MultiDexApplication() {
//第一步初始化 application
//第一步初始化 application
AppliContext
.
init
(
this
)
AppliContext
.
init
(
this
)
// Config.init(this)
// Config.init(this)
NetConfig
.
setBase_Url
(
NetConfig
.
Environment
.
DEV
)
// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
NetConfig
.
setBase_Url
(
NetConfig
.
Environment
.
PRODUCT
)
// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
Constant
.
appLs
=
"afcbef40e31631d3"
//appls
Constant
.
appLs
=
"afcbef40e31631d3"
//appls
AdManager
.
init
(
this
)
AdManager
.
init
(
this
)
...
...
app/src/main/java/com/ym/game/view/MainDialog.kt
View file @
8aefa040
...
@@ -327,7 +327,7 @@ object MainDialog {
...
@@ -327,7 +327,7 @@ object MainDialog {
(
context
as
Activity
),
(
context
as
Activity
),
ZXADSizeConfig
(
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
context
).
toFloat
())
-
56
,
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
context
).
toFloat
())
-
56
,
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
context
).
toFloat
())
-
56
)
*
0.66
.
toInt
()
(
(
Utils
.
px2dip
(
context
.
windowManager
?.
defaultDisplay
?.
width
!!
.
toFloat
())
-
56
)
*
0.66
)
.
toInt
()
),
),
object
:
object
:
ZXADExpressListener
{
ZXADExpressListener
{
...
...
app/src/main/java/com/ym/game/view/SpeedWaterPopupWindow.kt
View file @
8aefa040
...
@@ -103,7 +103,7 @@ class SpeedWaterPopupWindow : PopupWindow(), SpeedWaterContract.View,
...
@@ -103,7 +103,7 @@ class SpeedWaterPopupWindow : PopupWindow(), SpeedWaterContract.View,
)
)
}
}
4
->
{
4
->
{
EventUtils
.
onEvent
(
"click_
receive_coin_task_video_btn"
,
"领金币
任务视频"
)
EventUtils
.
onEvent
(
"click_
jiasuji_task_video_btn"
,
"领加速剂
任务视频"
)
AdManager
.
loadRewardVideoAd
(
AdManager
.
loadRewardVideoAd
(
ADConfig
.
AD_REWARD_VIDIO
,
ADConfig
.
AD_REWARD_VIDIO
,
(
mContext
as
Activity
),
(
mContext
as
Activity
),
...
...
app/src/main/res/layout/dialog_layout_record.xml
View file @
8aefa040
...
@@ -5,36 +5,45 @@
...
@@ -5,36 +5,45 @@
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
60
0dp"
android:layout_height=
"
59
0dp"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:layout_marginLeft=
"9dp"
android:layout_marginLeft=
"9dp"
android:layout_marginRight=
"9dp"
>
android:layout_marginRight=
"9dp"
>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"5
32
dp"
android:layout_height=
"5
20
dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:scaleType=
"fitXY"
android:scaleType=
"fitXY"
android:src=
"@mipmap/icon_main_dialog_get_drops_bg"
/>
android:src=
"@mipmap/icon_main_dialog_get_drops_bg"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"568dp"
android:layout_height=
"577dp"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
>
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
>
<RelativeLayout
android:layout_width=
"@dimen/dp_50"
android:layout_height=
"@dimen/dp_40"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"76dp"
>
</RelativeLayout>
<ImageView
<ImageView
android:id=
"@+id/iv_dialog_close"
android:id=
"@+id/iv_dialog_close"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"
62
dp"
android:layout_marginTop=
"
76
dp"
android:src=
"@mipmap/icon_new_close"
/>
android:src=
"@mipmap/icon_new_close"
/>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:scaleType=
"fitXY"
android:scaleType=
"fitXY"
android:src=
"@mipmap/icon_recode_bg"
/>
android:src=
"@mipmap/icon_recode_bg"
/>
...
@@ -42,10 +51,11 @@
...
@@ -42,10 +51,11 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/iv_dialog_close"
android:layout_below=
"@+id/iv_dialog_close"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rl_record"
android:id=
"@+id/rl_record"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/item_layout_record.xml
View file @
8aefa040
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:layout_marginBottom=
"@dimen/dp_6"
>
android:layout_marginBottom=
"@dimen/dp_6"
>
<RelativeLayout
<RelativeLayout
...
...
library/src/main/res/drawable-xhdpi/icon_get_diamand.png
0 → 100644
View file @
8aefa040
34.7 KB
library/src/main/res/layout/dialog_get_diamand.xml
View file @
8aefa040
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"35dp"
android:layout_marginTop=
"35dp"
android:src=
"@drawable/icon_
top_bg
"
/>
android:src=
"@drawable/icon_
get_diamand
"
/>
<TextView
<TextView
android:id=
"@+id/id_tv_gongxi_get"
android:id=
"@+id/id_tv_gongxi_get"
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
android:text=
"恭喜获得钻石"
android:text=
"恭喜获得钻石"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
android:textSize=
"20sp"
android:visibility=
"visible"
/>
android:visibility=
"
in
visible"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/id_ll_content"
android:id=
"@+id/id_ll_content"
...
...
userinfo/src/main/java/com/ym/userinfo/module/activity/SettingActivity.kt
View file @
8aefa040
...
@@ -3,6 +3,7 @@ package com.ym.userinfo.module.activity
...
@@ -3,6 +3,7 @@ package com.ym.userinfo.module.activity
import
android.content.ClipData
import
android.content.ClipData
import
android.content.ClipboardManager
import
android.content.ClipboardManager
import
android.content.Context
import
android.content.Context
import
android.util.Log
import
com.bytedance.sdk.openadsdk.TTNativeExpressAd
import
com.bytedance.sdk.openadsdk.TTNativeExpressAd
import
com.umeng.analytics.MobclickAgent
import
com.umeng.analytics.MobclickAgent
import
com.ym.library.Constant
import
com.ym.library.Constant
...
@@ -58,12 +59,13 @@ class SettingActivity : BaseActivity() {
...
@@ -58,12 +59,13 @@ class SettingActivity : BaseActivity() {
val
updateVersionManager
=
this
?.
let
{
it1
->
UpdateVersionManager
(
it1
)
}
val
updateVersionManager
=
this
?.
let
{
it1
->
UpdateVersionManager
(
it1
)
}
updateVersionManager
?.
checkUpdate
(
true
)
updateVersionManager
?.
checkUpdate
(
true
)
}
}
AdManager
.
loadFeedAd
(
AdManager
.
loadFeedAd
(
ADConfig
.
AD_IMG_FADE
,
ADConfig
.
AD_IMG_FADE
,
this
,
this
,
ZXADSizeConfig
(
ZXADSizeConfig
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
this
).
toFloat
())
-
58
,
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
this
).
toFloat
())
-
58
,
(
Utils
.
px2dip
(
PhoneUtils
.
getScreenWidth
(
this
).
toFloat
())
-
58
)
*
0.66
.
toInt
()
(
(
Utils
.
px2dip
(
windowManager
?.
defaultDisplay
?.
width
!!
.
toFloat
())
-
58
)
*
0.66
)
.
toInt
()
),
),
object
:
object
:
ZXADExpressListener
{
ZXADExpressListener
{
...
...
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