Thursday, October 17, 2013

Position of an item in Android Adapter is zero-based

Adapters are used in Android to "act as a bridge" between a list-like View, and its underlying dataset.
When working with Adapters, one often works with the position of an item. This is a number that indicates where in the list that item resides, and importantly, the numbering for position starts from zero.

No comments:

Post a Comment