E5C5 GitHub - clearbucketLabs/StartPointSeekBar: StartPointSeekBar is a custom view for the Android platform that makes it possible to have a SeekBar to have custom start point. · GitHub
[go: up one dir, main page]

Skip to content

clearbucketLabs/StartPointSeekBar

 
 

Repository files navigation

Forked/Inspired from https://code.google.com/p/range-seek-bar/ by tittel@kom.e-technik.tu-darmstadt.de

This solves the problem as described in http://stackoverflow.com/questions/17415096/seekbar-for-two-values-50-0-50

ScreenShot

So you can set the start position of the seekbar anywhere.

Example code:

    StartPointSeekBar<Integer> seekBar = new StartPointSeekBar<Integer>(-100, +100, this);
    seekBar.setOnSeekBarChangeListener(new StartPointSeekBar.OnSeekBarChangeListener<Integer>()
    {
        @Override
        public void onOnSeekBarValueChange(StartPointSeekBar<?> bar, Integer value)
        {
            Log.d(LOGTAG, "seekbar value:" + value);
        }
    });

    // add RangeSeekBar to pre-defined layout
    ViewGroup layout = (ViewGroup) findViewById(R.id.seekbarwrapper);
    layout.addView(seekBar);

About

StartPointSeekBar is a custom view for the Android platform that makes it possible to have a SeekBar to have custom start point.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 93.1%
  • Groovy 6.9%
0