You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @rubensousa i am facing one issue is
i have 5 rails in dpadrecylerview and let say my focus on third rail and i add new rail added at 2nd position then when i move d-pad up then focus not move to up it remove from d-pad recyclerview and when i press-d-pad down and then left or right then its working fine. and when rail is added below the rail that have already focus then its working fine.
val diffCallback = RowDiffCallback(items, rows)
val diffResult = DiffUtil.calculateDiff(diffCallback)
items.clear()
items.addAll(rows)
diffResult.dispatchUpdatesTo(this)
if (recyclerView?.hasFocus()==true) {
recyclerView?.requestLayout()
}
and after add rail if i do recyclerView?.requestLayout() then its working but issue will in performance
The text was updated successfully, but these errors were encountered:
Hi @rubensousa i am facing one issue is
i have 5 rails in dpadrecylerview and let say my focus on third rail and i add new rail added at 2nd position then when i move d-pad up then focus not move to up it remove from d-pad recyclerview and when i press-d-pad down and then left or right then its working fine. and when rail is added below the rail that have already focus then its working fine.
val diffCallback = RowDiffCallback(items, rows)
val diffResult = DiffUtil.calculateDiff(diffCallback)
items.clear()
items.addAll(rows)
diffResult.dispatchUpdatesTo(this)
and after add rail if i do recyclerView?.requestLayout() then its working but issue will in performance
The text was updated successfully, but these errors were encountered: