Help with scrolling in android


#1

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() {
}


#2

You can use a ScrollView as shown here:

https://forum.processing.org/two/discussion/26515/scrollable-image-with-scrollview

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


#3

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