@Override
            public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
                float percentage = (float) i / 100;
                float value = min + percentage * (max - min);
                String formattedValue = String.format(" %.2f", value);
                try {
                    mVisualizer.setInterpolator((Interpolator) constructor.newInstance(value));
                } catch (Throwable error) {
                    Log.e("interpolatorPlayground", error.getMessage());
                }
                label.setText(name + formattedValue);
            }
Creates an Interpolator that takes a single parameter in its constructor.
The min/max/default parameters determine how the interpolator is initially
set up as well as the values used in the SeekBar for changing this value.
AnimationsInterpolatorPlayground/app/src/main/java/com/example/android/interpolatorplayground/MainActivity.java