Commit 75edfaab by 刘鹏

feat : 主诉滑动效果去除

parent 74cab434
......@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.03",
"m-user" : "0.0.61.37",
"m-home" : "0.0.22.68",
"m-im" : "0.0.19.50",
"m-im" : "0.0.19.51",
"m-dynamic" : "0.0.7.25",
"m-article" : "0.0.0.10",
......
......@@ -197,30 +197,6 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
})
mQuestionAdapter.setOnItemChildClickListener { adapter, view, position ->
if (view.id == R.id.tv_notes) {
//如何描述点击事件 ,展开后滑动到列表底部
mQuestionAdapter.data[position].type5Open = true
mQuestionAdapter.notifyDataSetChanged()
recycle.smoothScrollToPosition(mQuestionAdapter.data.size)
}
}
recycle.addOnScrollListener(object : RecyclerView.OnScrollListener() {
override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
super.onScrollStateChanged(recyclerView, newState)
if (newState == RecyclerView.SCROLL_STATE_DRAGGING && mData.size > 0) {
//监听滑动 如果是
for ((index, item) in mData.withIndex()) {
if (item.viewType == 5 && item.type5Open) {
mQuestionAdapter.data[index].type5Open = false
mQuestionAdapter.notifyItemChanged(index)
}
}
}
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment