this is what the code originally looks like:
@Override
public void onProgressChanged (SeekBar seekBar, int progress, boolean fromUser){
...
}
i need it to be this:
@Override
public void onProgressChanged (SeekBar seekBar, float progress, boolean fromUser){
...
}
however when i change the int to a float i get an error saying that The method onProgressChanged(SeekBar, float, boolean) of type new SeekBar.OnSeekBarChangeListener(){} must override or implement a supertype method
does anyone know how i can achieve this?
No you can’t change types in overriden methods.
If you need float numbers you can pass int number that is multiplied by for example 100 and in your implementation just divide it by 100.
If not then just cast to int