We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, i'd like to use Control P5 Sliders in an android-project. But unfortunately, the sliders behave different than in Java mode. On the Android-phone, you have to click one slider twice to change the value. This is bad, because the first click can affect the state of the slider which was selected before. Any idea how to solve this problem? Thanks!
import controlP5.*;
ControlP5 cp5;
void setup(){
fullScreen();
cp5 = new ControlP5(this);
cp5.addSlider("ONE")
.setPosition(50,100)
.setSize(width-100, 50);
cp5.addSlider("TWO")
.setPosition(50,200)
.setSize(width-100, 50);
}
void draw(){
}
Answers
Have you consider using a slider from the Android API?
https://www.javatpoint.com/android-seekbar-example
https://developer.android.com/reference/android/widget/SeekBar.html
Kf