Thanks Erel..i try this method that user posted in forum and does not work as expected (first 15items position is 0, next items increment position as it should be, but if you get up in listview counter stays same, so this does not return correct position in listview).
I found in ListView API in android page following function:
void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect)
Called by the view system when the focus state of this view changes.
It is function of android.widget.ListView adapter.
Could you please Erel or another skilled member write javaobject listener to this function?
This way i will get from this function
FOCUS_UP,
FOCUS_DOWN,
FOCUS_FORWARD,
FOCUS_BACKWARD so that i can use this code to get correct position:
Select direction
Case FOCUS_UP
Position = Position - 1
Case FOCUS_DOWN
Position = Position + 1
Case FOCUS_BACKWARD
Postion = Position - 15
Case FOCUS_FORWARD
Position = Position + 15
End Select
Log("Current ListView Position....."&Position)
I think this will work correctly and precise...ListView Have all 0, 0, 0, 0 positions on first 15items(first scroll page) so it is not implement in andoid api and OS.
Above function i think will work.