Double handled slider android

Ovidiu Birgu picture Ovidiu Birgu · Apr 9, 2011 · Viewed 14k times · Source

I was wondering if anyone had some code, or knew of a place that has code for creating a double handled slider. Example : enter image description here

I am looking to do something similar using a double slider to search for a range of ages on a time array , like in the photo

Thanks in advance

Answer

Ovidiu Birgu picture Ovidiu Birgu · May 22, 2011

I managed to build it myself... the idea I followed was different from the answers above. I created some items that can be dragged on the screen with the finger, and I fixed the Y position so it can only move from left to right. After that, I generated rectangles that signify the progress (between knobs and outside them). The good thing about this technique is that you can easily customize the slider to be vertical or horizontal, or if you want to put a custom picture in the background. The source is in the link below, and if anyone has any questions please ask. link: eclipse project

small resolution landscape

small resolution portrait

high resolution landscape