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
7883e3a1
Commit
7883e3a1
authored
Jan 27, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加珊瑚展示标识
parent
3cab7657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
TaskAdapter.kt
...c/main/java/com/mints/goodmoney/ui/adapter/TaskAdapter.kt
+5
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/adapter/TaskAdapter.kt
View file @
7883e3a1
...
@@ -8,6 +8,7 @@ import android.widget.Button
...
@@ -8,6 +8,7 @@ import android.widget.Button
import
android.widget.ImageView
import
android.widget.ImageView
import
android.widget.TextView
import
android.widget.TextView
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
com.mints.goodmoney.BuildConfig
import
com.mints.goodmoney.R
import
com.mints.goodmoney.R
import
com.mints.goodmoney.mvp.model.TzTaskBean
import
com.mints.goodmoney.mvp.model.TzTaskBean
import
com.mints.goodmoney.ui.adapter.listener.OnItemChildClickListener
import
com.mints.goodmoney.ui.adapter.listener.OnItemChildClickListener
...
@@ -52,6 +53,9 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
...
@@ -52,6 +53,9 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
if
(
viewHolder
is
SHViewHolder
)
{
if
(
viewHolder
is
SHViewHolder
)
{
viewHolder
.
adContainer
.
setAdModel
(
data
.
coralAd
)
viewHolder
.
adContainer
.
setAdModel
(
data
.
coralAd
)
if
(
BuildConfig
.
DEBUG
)
{
viewHolder
.
itemTvtext
.
text
=
"珊瑚"
}
}
}
val
holder
=
viewHolder
as
BaseViewHolder
val
holder
=
viewHolder
as
BaseViewHolder
...
@@ -75,7 +79,6 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
...
@@ -75,7 +79,6 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
holder
.
btnSubmit
.
text
=
"继续试玩"
holder
.
btnSubmit
.
text
=
"继续试玩"
}
}
}
}
if
(
::
mOnItemClickListener
.
isInitialized
)
{
if
(
::
mOnItemClickListener
.
isInitialized
)
{
holder
.
itemView
.
setOnClickListener
{
holder
.
itemView
.
setOnClickListener
{
setPosition
(
position
)
setPosition
(
position
)
...
@@ -122,6 +125,7 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
...
@@ -122,6 +125,7 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
val
ivAvatar
:
ImageView
=
view
.
findViewById
(
R
.
id
.
item_iv_avatar
)
val
ivAvatar
:
ImageView
=
view
.
findViewById
(
R
.
id
.
item_iv_avatar
)
val
tvTitle
:
TextView
=
view
.
findViewById
(
R
.
id
.
item_tv_title
)
val
tvTitle
:
TextView
=
view
.
findViewById
(
R
.
id
.
item_tv_title
)
val
tvCoin
:
TextView
=
view
.
findViewById
(
R
.
id
.
item_tv_coin
)
val
tvCoin
:
TextView
=
view
.
findViewById
(
R
.
id
.
item_tv_coin
)
val
itemTvtext
:
TextView
=
view
.
findViewById
(
R
.
id
.
item_tv_text
)
val
btnSubmit
:
Button
=
view
.
findViewById
(
R
.
id
.
item_btn_submit
)
val
btnSubmit
:
Button
=
view
.
findViewById
(
R
.
id
.
item_btn_submit
)
}
}
}
}
\ No newline at end of file
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