I'm trying to write BaseAdapter
to my GrivView
but in
public View getView(int position, View convertView, ViewGroup parent) { ... }
the position
while rendering next elements is:
visible elements
---------------
| 1 2 3 |
| 4 5 6 | <--- screen
| 7 8 9 |
---------------
nonvisible elements
| 1 2 3 | <-- below visible area
| 4 5 6 |
where real is:
visible elements
---------------
| 1 2 3 |
| 4 5 6 |
| 7 8 9 |
---------------
nonvisible elements
| 10 11 12 |
| 13 14 15 |
I'm aware it's correct behaviour (it counts only visible elements), but how to get the real position of item on list? Or how to know which layout should I return?
EDIT: However the returned number are much more random than I showed, even on screen.