Ger radial gauge by dragging

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

  • Posted 8 August 2017, 10:40 am EST

    Hello,

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

    For the DisplayingValuesActivity.java 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.

    Keith.
  • Replied 8 August 2017, 10:40 am EST

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

    http://www.goxuni.com/docs/android/api/com/grapecity/xuni/gauge/XuniGauge.html#getValueChanged--

    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
    args.getValue();
    }
    }, mGauge);
Need extra support?

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

Learn More

Forum Channels