Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Component used:
RecyclerView
,CustomView
issue :
ReDrawing everyThing on
notifyItemChanged
:CustomView
(extension of View) withrecyclerView
, Rather than updating the item,notifyItemChanged(position)
callsonDraw(Canvas c)
for every item in therecyclerView
.However, All other items will remain untouched if I call
invalidate()
to update my view. Therefore, it is possible to update one item and not update the others.Are we not wasting resources by doing this?
Sample attached and also can be found in ( here )
in the sample with redrawing item text color will change. and clicking on a item will call
notifyItemChanged
for that item.