You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to change ticks label on the TubeSpeedometer to only show character "|" instead of numbers. To do so, I override the OnPrintTickLabel function (in Java):
I think it's because I change the max speed at run time meterCores.setMaxSpeed(nb_max_cores);, and the OnPrintTickLabel function has already been called at this point.
The text was updated successfully, but these errors were encountered:
I'm trying to change ticks label on the TubeSpeedometer to only show character "|" instead of numbers. To do so, I override the OnPrintTickLabel function (in Java):
meterCores = findViewById(R.id.meter_cores); meterCores.setMaxSpeed(nb_max_cores); meterCores.setOnPrintTickLabel((integer, aFloat) -> { return "|"; });
But when I run the code, this is what I get:
I think it's because I change the max speed at run time
meterCores.setMaxSpeed(nb_max_cores);
, and the OnPrintTickLabel function has already been called at this point.The text was updated successfully, but these errors were encountered: