I need to get ScrollView Position when i do with my remote control up and down so when i get index of scrolled item i can then call another sub that sets scroll on another scrollview...so i put keypress event and pres Buttons UP and DOWN on remote (on the center is OK button) and nthing i get from keypress event in log viewer.
The point is to have Scrolled Position Index (like pressing OK button on scrolled item and get index..but without pressing OK button...for example: using remote i press...DOWN button (KEYCODE_DPAD_UP) and ScrollViews scrolls one item down and write in LOG index of scrolled item.
Here is what i try but i get empty in log viewer:
The point is to have Scrolled Position Index (like pressing OK button on scrolled item and get index..but without pressing OK button...for example: using remote i press...DOWN button (KEYCODE_DPAD_UP) and ScrollViews scrolls one item down and write in LOG index of scrolled item.
Here is what i try but i get empty in log viewer:
B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean
Select KeyCode
Case KeyCodes.KEYCODE_DPAD_UP
Log("DOWN")
'HERE - i need fnction to get index from ScrollView Item
ScrollView1.GetItem ???
End Select
End Sub