vashisthg / Startpointseekbar
StartPointSeekBar is a custom view for the Android platform that makes it possible to have a SeekBar to have custom start point.
Stars: ✭ 137
Programming Languages
java
68154 projects - #9 most used programming language
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
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);
}
});
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].