開發過程當中發現RecyclerView.getChildAt(position)爲空的狀況,可是明明這個position卻沒有越界。開發
解決辦法:用recycler.getLayoutManager().findViewByPosition()替換就能夠了get
記錄一下,給後人乘涼it