Help with scrolling in android

Hi, I want to make a scroller in this app im working on but i dont want a scrolling bar, just to touch and drag like in most apps. How would I go about to do this ? pls help

Alternatively, how can I detect which direction and distance I’m doing with
void mouseDragged() {
}

You can use a ScrollView as shown here:

Scrollable image with ScrollView - Processing 2.x and 3.x Forum

There is a recent post that might be able to do what you want except it might not be scrolling vertically by sideways. Not tested but it should work. A carousel for graphs

Kf

2 Likes

KF thankyou so much holy, the links you sent were super helpful :DDD

It ended up by working with just a simple adding variable like so

dist += -pmouseY + mouseY;

perfect :DD

1 Like