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
bd9edfa7
Commit
bd9edfa7
authored
Nov 24, 2020
by
Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[李俊岐] 优化
parent
a4ed5af4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
ClockInWithdrawAdpater.kt
...c/main/java/com/ym/game/adapter/ClockInWithdrawAdpater.kt
+10
-8
No files found.
app/src/main/java/com/ym/game/adapter/ClockInWithdrawAdpater.kt
View file @
bd9edfa7
...
@@ -130,11 +130,11 @@ class ClockInWithdrawAdpater :
...
@@ -130,11 +130,11 @@ class ClockInWithdrawAdpater :
holder
.
ivRedPgStatus
.
clearAnimation
()
holder
.
ivRedPgStatus
.
clearAnimation
()
holder
?.
ivRightStatus
.
clearAnimation
()
holder
?.
ivRightStatus
.
clearAnimation
()
}
else
if
(
data
?.
status
==
8
)
{
}
else
if
(
data
?.
status
==
8
)
{
holder
?.
layoutCenter
.
visibility
=
View
.
VISIBL
E
holder
?.
layoutCenter
.
visibility
=
View
.
GON
E
holder
?.
ivRightStatus
.
visibility
=
View
.
VISIBLE
holder
?.
ivRightStatus
.
visibility
=
View
.
VISIBLE
holder
?.
layoutProgress
.
visibility
=
View
.
VISIBL
E
holder
?.
layoutProgress
.
visibility
=
View
.
GON
E
holder
?.
ivRedPgStatus
.
visibility
=
View
.
GONE
holder
?.
ivRedPgStatus
.
visibility
=
View
.
GONE
holder
?.
tvComplete
.
visibility
=
View
.
GON
E
holder
?.
tvComplete
.
visibility
=
View
.
VISIBL
E
holder
?.
layoutRedPg
.
visibility
=
View
.
GONE
holder
?.
layoutRedPg
.
visibility
=
View
.
GONE
holder
?.
tvMoneyRedPg
.
visibility
=
View
.
GONE
holder
?.
tvMoneyRedPg
.
visibility
=
View
.
GONE
...
@@ -142,9 +142,9 @@ class ClockInWithdrawAdpater :
...
@@ -142,9 +142,9 @@ class ClockInWithdrawAdpater :
holder
?.
ivBg
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_bg
)
holder
?.
ivBg
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_bg
)
holder
?.
ivRightStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_red_pg
)
holder
?.
ivRightStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_red_pg
)
holder
?.
tvProgress
.
text
=
"${data?.currentNum}/${data?.targetNum}"
//
holder?.tvProgress.text = "${data?.currentNum}/${data?.targetNum}"
holder
?.
progressBar
.
max
=
data
?.
targetNum
?:
10
//
holder?.progressBar.max = data?.targetNum ?: 10
holder
?.
progressBar
.
progress
=
data
?.
currentNum
?:
0
//
holder?.progressBar.progress = data?.currentNum ?: 0
holder
.
ivRedPgStatus
.
clearAnimation
()
holder
.
ivRedPgStatus
.
clearAnimation
()
startAnimator
(
holder
?.
ivRightStatus
)
startAnimator
(
holder
?.
ivRightStatus
)
...
@@ -159,18 +159,20 @@ class ClockInWithdrawAdpater :
...
@@ -159,18 +159,20 @@ class ClockInWithdrawAdpater :
if
(
data
.
status
==
3
||
data
.
status
==
1
)
{
if
(
data
.
status
==
3
||
data
.
status
==
1
)
{
// 当天任务,未完成打卡
// 当天任务,未完成打卡
holder
?.
layoutCenter
.
visibility
=
View
.
VISIBLE
holder
?.
layoutCenter
.
visibility
=
View
.
VISIBLE
holder
?.
layoutProgress
.
visibility
=
View
.
VISIBLE
holder
?.
tvMoneyRedPg
.
visibility
=
View
.
VISIBLE
holder
?.
tvMoneyRedPg
.
visibility
=
View
.
VISIBLE
holder
?.
ivRedPgStatus
.
visibility
=
View
.
VISIBLE
holder
?.
ivRedPgStatus
.
visibility
=
View
.
VISIBLE
holder
?.
tvComplete
?.
visibility
=
View
.
GONE
holder
?.
tvMoney
?.
visibility
=
View
.
GONE
holder
?.
tvMoney
?.
visibility
=
View
.
GONE
holder
?.
ivRedPgStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_red_pg_coin
)
holder
?.
ivRedPgStatus
?.
setImageResource
(
R
.
drawable
.
icon_clock_in_item_red_pg_coin
)
//完成任务 未领取
//完成任务 未领取
if
(
data
.
status
==
1
)
{
if
(
data
.
status
==
1
)
{
holder
?.
layoutProgress
.
visibility
=
View
.
GONE
holder
?.
tvComplete
?.
visibility
=
View
.
VISIBLE
startAnimator
(
holder
.
layoutRedPg
)
startAnimator
(
holder
.
layoutRedPg
)
}
else
{
}
else
{
holder
?.
layoutProgress
.
visibility
=
View
.
VISIBLE
holder
?.
tvComplete
?.
visibility
=
View
.
GONE
holder
.
ivRedPgStatus
.
clearAnimation
()
holder
.
ivRedPgStatus
.
clearAnimation
()
}
}
holder
?.
ivRightStatus
.
clearAnimation
()
holder
?.
ivRightStatus
.
clearAnimation
()
...
...
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