Ger radial gauge by dragging

Posted by: kbauwise on 8 August 2017, 1:40 am EST

  • Posted 8 August 2017, 1:40 am EST


    I am executing the latest version Gauge101 project in Android Studio.

    For the sample, its not clear where the updated variable 'mValue' is returned when either gauge is dragged, rather than the '+' '-' buttons being selected.Can this be explained please?

    None of the other sample seem to show how the value of the gauge can be determined from just dragging the gauge control.

  • Replied 8 August 2017, 1:40 am EST

    I think you should be able to use the getValueChanged() event for that:

    You'll need to add a handler for the Event, so it should look something like:

    mGauge.getValueChanged().addHandler(new IEventHandler()
    public void call(Object arg0, Object arg1)
    GaugeValueEventArgs args = (GaugeValueEventArgs) arg1;
    //To get the value
    }, mGauge);
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels