Commit b9eda70d by 万齐军

Merge branch 'feat/qj/confide_2.0' into 'd/v_confide_2.0'

feat: 倾诉首页筛选处理

See merge request app_android_lib/YDL-Component!11
parents a6628b40 6824546c
...@@ -2,6 +2,7 @@ package com.ydl.confide.home.listener ...@@ -2,6 +2,7 @@ package com.ydl.confide.home.listener
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
import com.ydl.confide.home.widget.ConfideHomeFilterView
import com.yidianling.common.tools.LogUtil import com.yidianling.common.tools.LogUtil
import com.yidianling.common.tools.RxImageTool import com.yidianling.common.tools.RxImageTool
...@@ -51,7 +52,9 @@ class ConfideHomeRecycleViewListener : RecyclerView.OnScrollListener() { ...@@ -51,7 +52,9 @@ class ConfideHomeRecycleViewListener : RecyclerView.OnScrollListener() {
fun moveToPosition(mRecyclerView: RecyclerView){ fun moveToPosition(mRecyclerView: RecyclerView){
mRecyclerView.scrollBy(0, 1) mRecyclerView.scrollBy(0, 1)
var top = mRecyclerView.getChildAt(mIndex).top val childAt = mRecyclerView.getChildAt(mIndex)
if (childAt !is ConfideHomeFilterView) return
val top = childAt.top
if(top==0 || top==1){ if(top==0 || top==1){
//已滚动到顶部 //已滚动到顶部
......
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