Skip to content

Add getItemKey - #1

Open
putt wants to merge 2 commits into
masterfrom
add-getItemKey
Open

putt wants to merge 2 commits into
masterfrom
add-getItemKey

Conversation

@putt

@putt putt commented Oct 1, 2016

Copy link
Copy Markdown
Owner

There is getItemId which is doing the getItemKey operation but not expose the key actually.
It's very helpful to make the ViewHolder.
Most of time, Saving the key inside the node can make the key easily be get in the ViewHolder. But sometime, node will be update very frequently that I have to save key so many times or check if the key existed too much. So get the key while display the adapter is better.
And when I pull this request, I have a great question. THERE is a getItemId, why not a getItemKey ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant