Skip to content

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

Notifications You must be signed in to change notification settings

vashisthg/StartPointSeekBar

Repository files navigation

Forked/Inspired from https://code.google.com/p/range-seek-bar/ by [email protected]

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:

    <com.vashisthg.startpointseekbar.StartPointSeekBar
        android:id="@+id/seek_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        custom:minValue="-40.0"
        custom:maxValue="+40.0"
        custom:defaultBackgroundColor="@color/default_background_color"
        custom:defaultBackgroundRangeColor="@color/default_background_range_color"
        />
        StartPointSeekBar seekBar = (StartPointSeekBar) findViewById(R.id.seek_bar);
        seekBar.setOnSeekBarChangeListener(new StartPointSeekBar.OnSeekBarChangeListener() {
            @Override
            public void onOnSeekBarValueChange(StartPointSeekBar bar, double value) {
                Log.d(LOGTAG, "seekbar value:" + value);
            }
        });

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

No packages published