Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double handled slider android [closed]

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

like image 533
Ovidiu Birgu Avatar asked Apr 09 '11 16:04

Ovidiu Birgu


2 Answers

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

like image 198
Ovidiu Birgu Avatar answered Oct 11 '22 22:10

Ovidiu Birgu


You could try and extend the AbsSeekBar and have a look at the single-thumbed-SeekBar how it works.

like image 31
dst Avatar answered Oct 11 '22 22:10

dst