How to get current min and max value in RangeSeekBar in android?

I am using RangeSeekBar but i am not able to get updated current min and max value.


Here is the code

// create RangeSeekBar as Integer range between 20 and 75
RangeSeekBar<Integer> seekBar = new RangeSeekBar<Integer>(20, 75, context);
seekBar.setOnRangeSeekBarChangeListener(new OnRangeSeekBarChangeListener<Integer>() {
        public void onRangeSeekBarValuesChanged(RangeSeekBar<?> bar, Integer minValue, Integer maxValue) {
                // handle changed range values
                Log.i(TAG, "User selected new range values: MIN=" + minValue + ", MAX=" + maxValue);

Assuming that you are using RangeSeekBar Lib. Use the code below to get the minimum and maximum values::

mSeekBar.setOnRangeSeekBarChangeListener(new OnRangeSeekBarChangeListener<Integer>() {

                    public void onRangeSeekBarValuesChanged(
                            RangeSeekBar<?> bar, Integer minValue,
                            Integer maxValue) {
                        Log.d(LOG_TAG, "Min: "+minValue);
                        Log.d(LOG_TAG, "Max: "+maxValue);

Hope this helps :)

Need Your Help

Character encoding error in Php

php html mysql encoding

Hi I am storing some text in a mysql column. The error I am getting is whenever there is an apostrophe (') in the text it's getting displayed as '’'even though apostrophe is being displayed in the

cygwin + console2 ctrl-c keyboard interrupt not working

console cygwin console2

I'm using console2 as my shell for cygwin and control-C is not working.