Android Question Scrollview.ScrollPosition

Semen Matusovskiy

Well-Known Member
Licensed User
I used Sleep before and after changing. Doesn't work on my Android 7 & 8 phones.

B4X:
Log (scrollviewInstance.ScrollPosition & " " & intScrollPosition)
scrollviewInstance.ScrollToNow (intScrollPosition)
Sleep (0)
Log (scrollviewInstance.ScrollPosition & " " & intScrollPosition)
scrollviewInstance.ScrollPosition = intScrollPosition
Sleep (0)
Log (scrollviewInstance.ScrollPosition & " " & intScrollPosition)

Log :
0 10585
10585 10585
10585 10585

Looks Ok, but zero effect (does not scroll at all or scrolls to another position)
 
Last edited:
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Yes, in release mode
Under Android 4.4 (Samsung Galaxy s4) all worked with sleep (1).

I found a problem. I correct scroll position in some events, including IME. It looks that under different OSes there is another sequence of events. To my surprise, I found IME events like reaction to HideKeyboard (keyboard was not opened).
 
Last edited:
Upvote 0
Top