Android Question BBCodeView Scroll Page After Anchors

bocker77

Active Member
Licensed User
Longtime User
I want to be able to once scrolling to an anchor then scroll down a page. I have the following code:

B4X:
    cvRules.Text = csText
    Sleep(0)
    cvRules.ScrollToAnchor("S9")
    Sleep(0)
    Dim d As Double = cvRules.sv.ScrollViewOffsetY
    Log(d)
    cvRules.sv.ScrollViewOffsetY = d + 1300

While debugging and running it as is it doesn't scroll but if I set a break at the Dim instruction then continue it works. I thought if I would put some waits in it might solve my issue but no go. Does anyone have any thoughts?
 

bocker77

Active Member
Licensed User
Longtime User
Never mind. It works perfectly when in Release Mode.

This app runs on a tablet which can mirror to a TV. Another app is running on my phone and sends commands (find anchor, page up, page down) to the tablet. I guess with the delay it makes a difference.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…