I have the following method that I use to update my com.google.android.material.slider.RangeSlider view (the values assigned to ValueFrom, ValueTo, Values[0] & Values[1] are actually calculated, I just have literals here for simplicity, but I have confirmed that my calculated values are correct):
private void UpdateDisplayedRangeSlider()
{
//Remember current values
int currminvalue = this.rsDisplayedValues.Values[0].IntValue();
int currmaxvalue = this.rsDisplayedValues.Values[1].IntValue();
//Temporarily set values to 0
this.rsDisplayedValues.Values[0] = (Java.Lang.Float)0f;
this.rsDisplayedValues.Values[1] = (Java.Lang.Float)0f;
//Update ValueFrom/ValueTo
this.rsDisplayedValues.ValueFrom = (Java.Lang.Float)-100f;
this.rsDisplayedValues.ValueTo = (Java.Lang.Float)100f;
//Set new selected values
this.rsDisplayedValues.Values[0] = (Java.Lang.Float)-50f
this.rsDisplayedValues.Values[1] = (Java.Lang.Float)50f
}
When the values are updated, the RangeSlider does not show the changes (the properties have the correct values, but the thumbs do not move). This is my first time using the RangeSlider (or any of the Slider views). Is there something else I need to do to display the new values?